7 [0, 2, 4, 7, 8, 11] @=> int scale[];
13 Std.rand2( 0, 8 ) => bar.preset;
14 Std.rand2f( 0, 1 ) => bar.stickHardness;
15 Std.rand2f( 0, 1 ) => bar.strikePosition;
16 Std.rand2f( 0, 1 ) => bar.vibratoGain;
17 Std.rand2f( 0, 60 ) => bar.vibratoFreq;
18 Std.rand2f( 0, 1 ) => bar.volume;
19 Std.rand2f( .5, 1 ) => bar.directGain;
20 Std.rand2f( .5, 1 ) => bar.masterGain;
24 <<< "preset:", bar.preset() >>>;
25 <<< "stick hardness:", bar.stickHardness() >>>;
26 <<< "strike position:", bar.strikePosition() >>>;
27 <<< "vibrato gain:", bar.vibratoGain() >>>;
28 <<< "vibrato freq:", bar.vibratoFreq() >>>;
29 <<< "volume:", bar.volume() >>>;
30 <<< "direct gain:", bar.directGain() >>>;
31 <<< "master gain:", bar.masterGain() >>>;
34 scale[Std.rand2(0,scale.cap()-1)] => int winner;
35 57 + Std.rand2(0,2)*12 + winner => Std.mtof => bar.freq;