-
... example - how to use a MIDI keyboard with a simple synth MIDIIn.connectAll; // MIDIClient.init; ( // A SynthDef with ADSR envelope SynthDef("quick2", {arg freq = 440, amp = 0.1, gate = 1; var snd, env; env = Env.adsr(0.01, 0.1, ...
-
... src, chan, num, value. src The src number may be the system UID (obtained from MIDIClient.sources[index].uid ) or the index of the source in the MIDIClient.sources array. nil matches all. chan An Integer between 0 and 15 that selects which ...
-
... "-- init midi first --"]); gui_midiinit.action_({ |but| if(but.value == 1) { MIDIClient.init } { but.value_(1) }; gui_mididevices.items_(MIDIClient.destinations.collect{ |dest| dest.name }) }); gui_mididevices.action_({ |m| midi = MI ...
-
... 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, ...
-
... ult UMapDefs set */ ValueUMapDef( \midi_noteOn, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.remove; func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = u ...
-
... ndOfTrack; // may not be really needed, but nice if you want to do m.plot ) MIDIClient.init; ( ~events = m.midiEvents; ~midiout = MIDIOut(0); ~routine = { var lastTime = 0; ~events.do({ |evt| (evt[1] - lastTime).wai ...
-
... 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 ...
-
... default UMapDefs set */ ValueUMapDef( \midi_cc, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.free; func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = uni ...