-
... ized { ^ptrinit } *responders { ^ptrs } *init { if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); ptrinit = true; ptrs = []; MIDIIn.polytouch = { arg src, chan, note, touch; ptrs.any({ arg r; r.respond(src,chan,note,touch) }); } } *add ...
-
... , 127, inAction, "aftertouch", Point(540,330), 190); } /* *connect { |midiFunc| MIDIIn.touch = midiFunc; } *disconnect { MIDIIn.touch = nil; } */ *connect { |midiFunc| if( responder.isNil ) { responder = TouchResponder( midiFunc ); } } *dis ...
-
... olMIDI { classvar <>all; var mackieControl, <>midiFuncs; var <>offset = 0; var <midiIn, <midiOut; var <>currentFaderVals; var <>softSetTime = 0.9, <>hwSoftSetTasks; var <>knobRes = 0.0078125; // resolution for knobs (default 1/128) var <>kn ...
-
/* // Example: MIDIIn.connectAll; MIDIMonitor.start; // now wiggle all elements, then see hierarchy of messages: MIDIMonitor.postTree; MIDIMonitor.msgTree.keys; To Do: 1. abstract out consecutive note numbers and controller numbers in order ...
-
... st to SuperCollider for this, which makes this an option rather than a default: MIDIIn.noteOnZeroAsNoteOff = false; See: https://github.com/supercollider/supercollider/issues/1483 and: https://github.com/supercollider/supercollider/pull/148 ...
-
... ontroller 1 (modulation wheel) on any channel to the frequency of the sine wave MIDIIn.connectAll; // needs to be runned once ( m = MIDIFunc.cc({ |val, num, chan, src| x[0][0].freq = val.linexp(0,127,20,20000); // points to first unit of fi ...
-
... not initialized, this method will do it and connect the sources sequentially to MIDIIn. Note that MIDIIn.sysrt receives clock messages ONLY from the port assigned to MIDIIn inport 0. If your clock source is not at MIDIClient.sources[0], mak ...
-
... not initialized, this method will do it and connect the sources sequentially to MIDIIn. Note that MIDIIn.sysrt receives clock messages ONLY from the port assigned to MIDIIn inport 0. If your clock source is not at MIDIClient.sources[0], mak ...
-
... l,size); } derive { arg n; ^Controller.newP(ctl.copyRange(n,size-n), size-n); } midiInitialize { if(MIDIClient.initialized.not,{ MIDIClient.init; }); MIDIClient.sources.do({ arg endPoint; MIDIIn.connect(0, endPoint); }); MIDIIn.control = { ...
-
... lient.sources.do{|src, srcNum| if(src.device == "Teensy Head Tracker", { if(try{MIDIIn.isTeensyHeadTrackerConnected}.isNil, { if(MIDIClient.sources.any({|e| e.device=="Teensy Head Tracker"}), { "Connecting Teensy Head Tracker".postln; MIDII ...