[chuck-users] Begin the beguine
Hans Aberg
haberg-1 at telia.com
Mon Sep 24 15:30:31 EDT 2012
On 24 Sep 2012, at 20:58, Alberto Alassio wrote:
> Thank you very much! And now my question is: How did you get to know that that object (or command line, I don't know) - I'm referring to younameit - has got that use?
In the line
> "// an array
> [ 0, 2, 4, 7, 9, 11 ] @=> int hi[];
the RHS declares an array. The symbol "@=>" is used for assigning references. So "hi" becomes a reference to whatever is on the LHS.
Then in
> Std.mtof( 45 + Math.random2(0,3) * 12 +
> hi[Math.random2(0,hi.cap()-1)] ) => s.freq;" ?
cap() is the size function.
See the ChucK manual or the language reference listed here
http://chuck.cs.princeton.edu/doc/
More information about the chuck-users
mailing list