[chuck-users] chuck arguments

Renato Fabbri renato.fabbri at gmail.com
Fri Aug 15 20:04:44 EDT 2008

Hi Chuckists,

chuck -s test:walk-sample:silence-rest:loop:ap-ppa-appp:3-1-2_1-2-3-4-5-7-6

test.ck is as follows:

for(0=>int i; i < me.args(); i++){
    <<<i, me.arg(i)>>>;

and outputs:

5 :(int)
0 walk-sample
1 silence-rest
2 loop
3 01-001-1000
4 3-1-2_1-2-3-4-5-7-6

i undestand that ChucK has only atof and atoi to get values from incomming
strings. and i
but 01-001-1000 is/are three vectors: [0,1],  [0,0,1] and [1,0,0,0].
and 3-1-2_1-2-3-4-5-7-6 is/are actually two vectors: [3,1,2] and

the first arguments are stringed options passed to ChucK scripts, seems
i need these two separate ordered sets of vectors..
i am thinking of sending each value independently (test:.....:4:6:9......)
separating each vector by, say, 999. and each set of vectors by 9999

any better idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080815/897c65c9/attachment.html>

More information about the chuck-users mailing list