4 => int device; MidiIn min; MidiMsg msg; SinOsc s => dac; if( !min.open( device ) ) { me.exit(); } <<< "MIDI device:", min.num(), " -> ", min.name() >>>; // infinite time-loop while( true ) { min => now; while( min.recv(msg) ) { <<< msg.data1, msg.data2, msg.data3 >>>; } 13 => int ctlNrFreq; if(msg.data2 == 13) { msg.data3 => s.freq; } }