-
/* FILENAME: SCMMIDIInSelectorView DESCRIPTION: Select a MIDIIn source AUTHOR: Marinus Klaassen (2012, 2021Q4) */ SCMMIDIInSelectorView : SCMViewBase { var <proxy, labelErrorMessage, popupMenuMIDIIns, mainLayout, selectedMIDIInName, <midiIn ...
-
... orts = 2; MIDIClient.init(inPorts,outPorts); // explicitly intialize the client MIDIIn.noteOff = { arg src, chan, num, vel; [chan,num,vel / 127].postln; }; MIDIIn.noteOn = { arg src, chan, num, vel; [chan,num,vel / 127].postln; }; MIDIIn.po ...
-
... .value); var msgType = ev[\midiMsgType]; if (msgType.isKindOf(Symbol).not or: { MIDIIn.respondsTo(msgType).not }) { "MIDISim: % is not a midiMsgType.\n".postf(msgType); ^this }; "// MIDISim sends: %, %.\n".postf(msgType, list); this.perform ...
-
... ent.init; // test that coding is correct: // access wheels, last 4 bits of note MIDIIn.noteOn.value(0, 0, 0, 0); // action: '1', 0 MIDIIn.noteOn.value(0, 0, 1, 0); // action: '2', 0 MIDIIn.noteOn.value(0, 0, 15, 0); // action: '16', 0 // hi ...
-
... itor"); control.items = [""]; updateFunc = { | selector | { var ev; loop { ev = MIDIIn.perform(selector); control.items = control.items .addFirst( ev.status.asString.extend(10, Char.space) + ev.chan.asString.extend(6, Char.space) + ev.b.asS ...
-
/* 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 ...
-
... , 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