//Number 3 //Chuck a day 2009 //by Scott Hewitt //www.ablelemon.co.uk/chuckaday //function holds 'instrument' function void build(int d, dur e){ 0 => int b; 0 => int a; while (b < d){ Std.rand2(1,4) => a; <<< a >>>; if (a == 1) { SinOsc s => dac; 0.3 => s.gain; Std.rand2f(440, 800) => s.freq; }else{ TriOsc f => dac; 0.3 => f.gain; Std.rand2f(440, 800) => f.freq; } b++; e => now; } } //a score? build(2, 100::ms); 2000::ms => now; build(2, 400::ms); 4000::ms => now; build(2, 10::ms); 1000::ms => now; build(2, 999::ms); 1000::ms => now;