«Listening to CC messages» by hems.inlet

on 03 Jun'15 05:23 in midicontrolmidiincc

Simple example showing how to listen for MIDI control messages

1
2
3
4
5
6
7
8
9
10
11
12
// 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);
raw 341 chars (focus & ctrl+a+c to copy)
reception
comments