1 Jan
2010
1 Jan
'10
10:02 a.m.
Hi, I've discovered chuck only a few days ago so I'm working through tutorials. Today I tried the following code from Graham Coleman's tutorial http://www.iua.upf.es/~gcoleman/chuck/tutorial/tutorial.html //connect a plucked string to the soundcard out StifKarp inst => dac; [0,2,3,1,4,2,6,3,4,4] @=> int mel[]; //sequence data for (0=>int i; ; i++) { //infinite loop std.mtof( 48 + mel[i%mel.cap()] ) => inst.freq; //set the note inst.noteOn( 0.5 ); //play a note at half volume 300::ms => now; //compute audio for 0.3 sec } This crashes chuck (v 1.2.1.3) at the "for" loop line. The code presumably used to work. Has the language changed or is this a simple bug? Thanks, -Steve