Spencer Salazarnew testing framework3e7be8b13 years agoHistory
35 lines · 603 B · Text
RawDownload
// 46.ck : midi read (fail-correct) MidiOut mout;MidiMsg mg;MidiRW mrw; // open - see 'chuck --probe'if( !mout.open( 0 ) )    me.exit(); Mandolin m => JCRev r => dac;.2 => r.mix; mrw.open( "z.txt" );//"foo.wav" => s.read;time t;now => t; int count; // play back from filewhile( mrw.read( mg ) != 0 ){    mg.when - t => now;    mg.when => t;    mout.send( mg );    std.rand2f( .8, .9 ) => m.pluckPos;    std.mtof( mg.data2 ) => m.freq;    mg.data3 / 128.0 => m.pluck;    <<< "when:", mg.when, " msg:", mg.data1, mg.data2, mg.data3 >>>; } mrw.close(); //<<<mrw.read( mg, t )>>>;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t