Spencer Salazarnew testing framework3e7be8b13 years agoHistory
31 lines · 517 B · Text
RawDownload
// 40.ck : midi (fail-correct)sinosc s => DelayL z => dac; MidiIn min;MidiMsg msg; 0.2::second => z.max => z.delay; // open (see 'chuck --probe')if( !min.open( 0 ) )    me.exit(); // infinite time loopwhile( true ){    // poll (also see events)    while( min.recv( msg ) )    {        <<<msg.data3>>>;	if( msg.data1 == 144 ) // note on	{            <<<msg.data1>>>;            0.75 * std.mtof(msg.data2) => s.freq;            msg.data3 / 128.0 => s.gain;	}    }     // wait    5::ms => now;} 

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