while( true )
{
.1 => float t =>e.time;
//reassign gain
Std.rand2f(0,1) => float g;
g => s1.gain;
g => s2.gain;
g => s3.gain;
g => s4.gain;
//reassign pitch
Std.mtof(instrumentSet1[Std.rand2(0,6)]) => s1.freq;
Std.mtof(instrumentSet1[Std.rand2(0,6)]) => s2.freq;
Std.mtof(instrumentSet1[Std.rand2(0,6)]) => s3.freq;
Std.mtof(instrumentSet1[Std.rand2(0,6)]) => s4.freq;
//Advance time by 1 samp
e.keyOn();
1000::ms => now;
e.keyOff();
}