// STK Instrument Groove, P. Cook, Feb. 2009 Clarinet c => JCRev r => dac; // try other instruments here 0.05 => r.mix; // set the dry/wet mix of reverb // Synchronization code, Try changing this to 0.1, 0.4, etc. 0.2::second => dur beat; // everybody wait until the next beat - (now % beat) => now; // beat on 0.2 second boundaries while (1) { 1 => c.noteOn; beat*0.5 => now; // play (blow) for a bit 1 => c.noteOff; beat*0.5 => now; // let note stop for a bit (110.0*Std.rand2(1,7)) => c.freq; // Play overtones of A }