{
   "id" : "1-4Zh",
   "is_private" : null,
   "code" : "// connect will connect to all midi in devices\r\n// if you need to specify one,\r\n// check the sources at: MIDIClient.sources\r\n// and connect using MIDIIn.connect(  source_index )\r\nMIDIIn.connect;\r\n\r\n// show incoming control data\r\n~control = { arg src, chan, num, val;    \r\n\t[chan,num,val].postln; \r\n};\r\n\r\nMIDIIn.addFuncTo(\\control, ~control);",
   "labels" : [
      "midi",
      "control",
      "midiin",
      "cc"
   ],
   "description" : "Simple example showing how to listen for MIDI control messages",
   "ancestor_list" : [],
   "name" : "Listening to CC messages",
   "author" : "hems.inlet"
}
