// title: Listening to CC messages // author: hems.inlet // description: // Simple example showing how to listen for MIDI control messages // code: // connect will connect to all midi in devices // if you need to specify one, // check the sources at: MIDIClient.sources // and connect using MIDIIn.connect( source_index ) MIDIIn.connect; // show incoming control data ~control = { arg src, chan, num, val; [chan,num,val].postln; }; MIDIIn.addFuncTo(\control, ~control);