[Csnd] ARRAYDAT
Date | 2013-11-29 17:39 |
From | Michael Gogins |
Subject | [Csnd] ARRAYDAT |
If I declare a variable amyarray[] init a1, a2, does the ARRAYDAT specify 1 dimension with 2 elements, each a ksmps vector of MYFLT, or does it specify 2 dimensions, with the 2nd dimension consisting of ksmps MYFLT?
Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com |
Date | 2013-11-30 22:21 |
From | Steven Yi |
Subject | Re: [Csnd] ARRAYDAT |
Hi Michael, I don't think there is a form of init that takes in a-sig's as initializers for an array. There are fillarray opcodes that do it for i and k-args. For init, it only takes in a var-arg length of i-var's, and it uses those to define dimensions, i.e.: asig[] init 4 is equivalent to the following in C: Avar asig[4]; and: asig[][] init 3, 3, would be equivalent to the following in C: Avar asig[3][3]; That's my understanding at least after a quick re-reading of Top/arrays.c. steven On Fri, Nov 29, 2013 at 12:39 PM, Michael Gogins |