{
   "labels" : [
      "midi"
   ],
   "code" : "MIDIClient.init\r\nMIDIClient.sources[8].uid\r\nMIDIClient.destinations.postln\r\n\r\n~channels = [\r\n\t[], // iac\r\n\t[1], // fs1r\r\n\t[], // rm1x\r\n\t[1,5,6,7,8,9,10,11,12,13,14,15,16], // cs1x\r\n\t[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16], // k2000\r\n\t[1,2,3,4,5,6], // z1\r\n\t[], // monologue midi out\r\n\t[1], // monologue sound\r\n\t[] // EWI\r\n];\r\n\r\n\r\nMIDIIn.connectAll\r\n(\r\nMIDIdef.freeAll;\r\nMIDIdef.noteOn(\\broadcastNoteOn, {\r\n\t|velo, noteNum, chan, src|\r\n\t\"noteOn \".post;\r\n\t[velo, noteNum, chan, src].postln;\r\n\t~channels.do({\r\n\t\t|channel, i|\r\n\t\tvar midiout=MIDIOut.new(i);\r\n\t\tchannel.do({|channelNum, i|\r\n\t\t\tmidiout.noteOn(channelNum, noteNum, velo);\r\n\t\t});\r\n\t});\r\n\r\n}, srcID: 1363844096);\r\n\r\nMIDIdef.noteOff(\\broadcastNoteOff, {\r\n\t|velo, noteNum, chan, src|\r\n\t\"noteOff \".post;\r\n\t[velo, noteNum, chan, src].postln;\r\n\t~channels.do({\r\n\t\t|channel, i|\r\n\t\tvar midiout=MIDIOut.new(i);\r\n\t\tchannel.do({|channelNum, i|\r\n\t\t\tmidiout.noteOff(channelNum, noteNum, velo);\r\n\t\t});\r\n\t});\r\n\r\n}, srcID: 1363844096);\r\n\r\nMIDIdef.cc(\\broadcastCc, {\r\n\t|val, num, chan, src|\r\n\t\"cc \".post;\r\n\t[val, num, chan, src].postln;\r\n\t~channels.do({\r\n\t\t|channel, i|\r\n\t\tvar midiout=MIDIOut.new(i);\r\n\t\tchannel.do({|channelNum, i|\r\n\t\t\tmidiout.control(channelNum, num, val);\r\n\t\t});\r\n\t});\r\n\r\n}, srcID: 1363844096);\r\n\r\nMIDIdef.touch(\\broadcastTouch, {\r\n\t|val, chan, src|\r\n\t\"touch \".post;\r\n\t[val, chan, src].postln;\r\n\t~channels.do({\r\n\t\t|channel, i|\r\n\t\tvar midiout=MIDIOut.new(i);\r\n\t\tchannel.do({|channelNum, i|\r\n\t\t\tmidiout.control(channelNum, num, val);\r\n\t\t});\r\n\t});\r\n\r\n}, srcID: 1363844096);\r\n\r\nMIDIdef.bend(\\broadcastBend, {arg ...args; \"bend \".post; args.postln; }, srcID: 1363844096);\r\n \r\n)",
   "id" : "1-5e4-yiP_9ggFeA",
   "is_private" : 1,
   "name" : "EWI Broadcast to Studio",
   "author" : "mkb.dirtyorg",
   "description" : "The idea here is to blast everything from my EWI to every other channel on every other device in my studio. Don't use as-is; I'm getting timing problems",
   "ancestor_list" : []
}
