ModalBar modey => JCRev r => dac;
.95 => r.gain;
.1 => r.mix;
[ 0, 2, 4, 7, 9, 11 ] @=> int scale[];
int which;
while( true )
{
( which + 1 ) % 9 => which;
which => modey.preset;
scale[Math.random2(0,scale.size()-1)] => int freq;
Math.mtof( 33 + (Math.random2(0,3)*12) + freq ) => modey.freq;
Math.random2f( 0.4, 0.8 ) => float v;
<<< "playing:", which, "freq:", Std.ftom(modey.freq()) $ int, "vel:", v >>>;
repeat( 4 )
{
Math.random2f( 0.2, 0.8 ) => float p => modey.strikePosition;
v => modey.strike;
<<< " strike position:", p >>>;
250::ms => now;
}
}