29 lines · 604 B · Text
RawDownload
// number of the device to open (see: chuck --probe)0 => int device;// get command lineif( me.args() ) me.arg(0) => Std.atoi => device; // the midi eventMidiIn min;// the message for retrieving dataMidiMsg msg; // open the deviceif( !min.open( device ) ) me.exit(); // print out device that was opened<<< "MIDI device:", min.num(), " -> ", min.name() >>>; // infinite time-loopwhile( true ){    // wait on the event 'min'    min => now;     // get the message(s)    while( min.recv(msg) )    {        // print out midi message        <<< msg.data1, msg.data2, msg.data3 >>>;    }}

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