-
... ct to the MIDI subsystem and connect to the available devices. MIDIClient.init; MIDIIn.connectAll; ⧉ ✔ You need to do this once after launching SuperCollider, or recompiling the class library. There are some examples in the wild using the M ...
-
/* FILENAME: SCMIDIInNoteRangeView DESCRIPTION: Select a MIDIIn source AUTHOR: Marinus Klaassen (2012, 2021Q4) EXAMPLE: m = SCMIDIInNoteRangeView(noteOnAction: { |...args| args.postln; }, noteOffAction: {|...args| args.postln; }).front; a = ...
-
... }; getSourceNames.value; //sourceNames.postln; inIsOn.do({ |item, i| if(item) {MIDIIn.connect(toPort, i) } }); window = Window("MIDIClient", Rect(299, 55, 200, 48), false); window.addFlowLayout; clientPopUp = PopUpMenu(window, 192@18) .ite ...
-
... unc and MIDIdef MIDIFunc and MIDIdef: Filtering based on device or message data MIDIIn Playing notes on your MIDI keyboard Sending MIDI out MIDI synchronization Third party libraries Guides | External Control > MIDI'>MIDI Using MIDI Notes o ...
-
... , port, channel, num, vel = msg; SystemClock.schedAbs(baseTime + t + latency, { MIDIIn.doNoteOnAction(MIDIPort.sources[port].uid, channel, num, vel); }); }).add; noteOffResp = OSCresponderNode(addr, '/OSCMidiOff', { |time, resp, msg| var m, ...
-
... , port, channel, num, vel = msg; SystemClock.schedAbs(baseTime + t + latency, { MIDIIn.doNoteOnAction(MIDIPort.sources[port].uid, channel, num, vel); }); }).add; noteOffResp = OSCresponderNode(addr, '/OSCMidiOff', { |time, resp, msg| var m, ...
-
... ch any note n = MIDIFunc.noteOn({arg ...args; args.postln} ); // match any note MIDIIn.doNoteOnAction(1, 1, 64, 64); // spoof a note on MIDIIn.doNoteOnAction(1, 1, 64, 43); // spoof a note on
-
... 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 ...
-
... specify one, // check the sources at: MIDIClient.sources // and connect using MIDIIn.connect( source_index ) MIDIIn.connectAll; // show incoming control data ~control = { arg src, channel, control, value; // ( control + " : " ...
-
... , 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 ...