Tuesday, 1 November 2016
He then
[11,4, 12,4, 11,4, 7,4, 11,4, 12,4, 11,4, 7,4, 4,16,//18, 0-17
11,4, 12,4, 11,4, 7,4, 11,4, 12,4, 11,4, 7,4, 4,16,//18-35
16,6, 14,4, 12,6, 16,6, 14,4, 12,6, 16,6, 16,4, 11, 6,//36-53
11,4, 12,4, 11,4, 7,4, 11,4, 12,4, 11,4, 7,4, 4,16//54-71
] @=> int notedur[]; //sequence data
SinOsc inst => JCRev r => dac;
.1 => r.gain;
.1 => r.mix;
now/ms => float mystart;
now/ms => float runtime;
while(true){for (1 => int i;i < notedur.cap(); i+2 => i) { //infinite loop
Std.mtof(48 + notedur[i-1] ) => inst.freq; //set the note
now/ms - mystart => runtime;
<<< "i=",i, " runtime in s=", runtime/1000, " notedur[i-1]=", notedur[i-1], " notedur[i]=", notedur[i] >>>;
(notedur[i]*85)::ms => now; //getdur from array
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment