-
... nil, go for dialog".postln; Dialog.openPanel(loadFunction); }); } // Checks if MIDIClient.init has been initialized. If not, attempt to initialize it. // Run function when after MIDI has been initialized. *waitForMIDI { |onComplete, lag = ...
-
... ..2] -- you can do MIDIPort.init([2, 0, 1]) and you'll get // MIDIIn.connect(0, MIDIClient.externalSources[2]) // MIDIIn.connect(1, MIDIClient.externalSources[0]) // MIDIIn.connect(2, MIDIClient.externalSources[1]) *init { |sourceInports| v ...
-
... UMapDefs set */ ValueUMapDef( \midi_note_gate, { |unit, midifuncs| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifuncs.do(_.free); func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curv ...
-
... {|view| view.visible= false}; nanoChannelText[8][0].visible= false; } ); index= MIDIClient.sources.detectIndex{|x| x.uid==device.id}; //MIDIIn.disconnect(index, MIDIClient.sources[index]); //TODO disconnect needed? MIDIIn.connect(index, MID ...
-
... , 15)).font_(Font(Font.available("Arial") ? Font.defaultSansFace, 9, true)); if(MIDIClient.initialized, { midiInitBut.states_([ ["restart MIDI", Color.black, Color.green] ]) }, { midiInitBut.states_([ ["init MIDI", Color.white, Color.red] ] ...
-
... MapDefs set */ ValueUMapDef( \midi_noteOn_freq, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.remove; func = { |value, range| var outSpec; outSpec = unit.getSpec( \value ); value = value - 69; i ...
-
... UMapDefs set */ ValueUMapDef( \midi_note_gate, { |unit, midifuncs| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifuncs.do(_.free); func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curv ...
-
... fault UMapDefs set */ ValueUMapDef( \midi_bend, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.free; func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = uni ...
-
... ault UMapDefs set */ ValueUMapDef( \midi_touch, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.free; func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = uni ...
-
MKtl.find; MIDIClient.sources MKtl('bltn0'); // [ "Ableton Push", "Ableton Push MIDI 1" ] MKtl('bltn1'); // [ "Ableton Push", "Ableton Push MIDI 2" ] ( ~desc = ( // idInfo: "Ableton Push", idInfo: ( name: "Ableton Push", sourcePortIndex: 1, ...