[Csnd] lenarray broken?
Date | 2014-02-06 23:17 |
From | Luis Antunes Pena |
Subject | [Csnd] lenarray broken? |
Hello, it looks like lenarry can't deal with
k-variables:
klen2 lenarray karr2 ilen2 lenarray karr2
instr 1 karr1[] fillarray 10, 11, 13, 16, 20 karr2[] fillarray 5, 6, 4, 5, 3, 2 ilen1 lenarray karr1 klen2 lenarray karr2 ilen2 lenarray karr2 prints "\\n ilen1: %d\\t klen2: %d\\tilen2: %d\\n", ilen1, klen2, ilen2 endin
-Luis |
Date | 2014-02-06 23:55 |
From | joachim heintz |
Subject | Re: [Csnd] lenarray broken? |
well, you can't expect a k-array to report something at i-time, can you? this works: |
Date | 2014-02-07 00:08 |
From | Andres Cabrera |
Subject | Re: [Csnd] lenarray broken? |
Hi, This is related to the recent question about assignment to k-rate arrays happening on the perf pass rather than the init pass.Cheers, On Thu, Feb 6, 2014 at 3:55 PM, joachim heintz <jh@joachimheintz.de> wrote: well, you can't expect a k-array to report something at i-time, can you? |
Date | 2014-02-07 17:04 |
From | Luis Antunes Pena |
Subject | Re: [Csnd] lenarray broken? |
Thanks Joachim. I'm still trying to
learn how to work with arrays.
For example one thing I don't understand is this: why is copy of an array only possible at k-rate but not at i-rate?
instr 1 iarr1[] fillarray 54, 56, 58karr1[] fillarray 71, 72 ;iarr2[] = iarr1karr2[] = karr1 -Luis Am 07.02.14 00:55, schrieb joachim heintz: well, you can't expect a k-array to report something at i-time, can you? |
Date | 2014-02-08 10:44 |
From | joachim heintz |
Subject | Re: [Csnd] lenarray broken? |
i think this is simply because some of the features we already have for k-arrays are not yet implemented for i-arrays. we should collect what is missing, and then discuss it here or on the developer list. if you can contribute to such a list while working with arrays, it would be great (you can send here or to me off-list if you prefer). it tried to put together some explanations and examples about arrays here (in case you don't know it): http://en.flossmanuals.net/csound/arrays joachim Am 07.02.2014 18:04, schrieb Luis Antunes Pena: > Thanks Joachim. I'm still trying to learn how to work with arrays. > For example one thing I don't understand is this: why is copy of an > array only possible at k-rate but not at i-rate? > > instr 1 > > iarr1[] fillarray 54, 56, 58 > > karr1[] fillarray 71, 72 > > ;iarr2[] = iarr1 > > karr2[] = karr1 > endin > > > -Luis > > > Am 07.02.14 00:55, schrieb joachim heintz: >> well, you can't expect a k-array to report something at i-time, can you? >> this works: >> >> |
Date | 2014-02-09 16:08 |
From | Luis Antunes Pena |
Subject | Re: [Csnd] lenarray broken? |
Joachim, sure I would like to give my
contribution to the development of the arrays.
The Floss manual was very, very usefull! Thanks, Luís Am 08.02.14 11:44, schrieb joachim heintz: i think this is simply because some of the features we already have for k-arrays are not yet implemented for i-arrays. we should collect what is missing, and then discuss it here or on the developer list. if you can contribute to such a list while working with arrays, it would be great (you can send here or to me off-list if you prefer). |