-
... 't collide with main SC process (dammit) Archive.archiveDir = PathName.tmp; MIDIClient.init; // synchronous devices = MIDIClient.destinations.collect { |ep| ep.device + " : " ++ ep.name }; if(thisProcess.argv.size >= 1) { device ...
-
... .doOnce{ 127.do({ |note| midiout.noteOff(1, note); }); }; if (MIDIClient.initialized.not) { MIDIClient.init; }; midiout = MIDIOut.new(0); no_of_bins = 24; table = { | period, phase, rangemin, rangemax | 127.col ...
-
... ote on, off, and continuous control messages // initialize the midi client MIDIClient.init; // connect all the possible inputs MIDIIn.connectAll; // if we receive a midi on message, display some data about it including velocity, ...
-
... 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, ...
-
... "-- 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 ...
-
... 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 ...
-
... th"]) .action_({ |menu| sendType = menu.value; if(menu.value != 0){ MIDIClient.init; popMidiDevice.items_( MIDIClient.destinations.collect{ |aDevice| aDevice.name.asString } ); midiDevice = MIDIOut(0) ...
-
... eo soundfile; I used recordings of a tuba, a western guitar and a panflute*/); MIDIClient.init; MIDIIn.connect(0, MIDIClient.sources[/*index of your device*/]); ( var activenotes = nil!128; var sustain = 0; var sustained = fal ...
-
s.boot; MIDIClient.init; // check the array of midi destinations for the device you are using, and then create a MIDIOut // at the index of the destination you plan on using // in the case that the midi destination you are using is ...
-
... ot({ var right, left; MIDIdef.freeAll; if (~midi_initilized.isNil) { MIDIClient.init; MIDIIn.connectAll; ~midi_initialized = 1; }; ~n = ( table: Order(), noteOn: {|n,note| n.table[note] = 1}, noteOff: {|n,not ...