-
... { init { destination = destination.asChannelIndex; } set { |val, divisor, num| MIDIIn.doControlAction(destination.port, destination.channel, num, val) } active { ^(destination.respondsTo(\port) and: { destination.respondsTo(\channel) }) } ...
-
... UMapDef( \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 = unit.get( \curve ); if (abs(curv ...
-
... tializing global variable for pitch bend wheel ~mod = 0; // global variable MIDIIn.connectAll; ~notes = Array.fill(128, {nil}); MIDIdef.noteOn(\on, { arg val, num, chan, src; ~notes[num] = Synth.new(\voxgrains, [ \baserate, ...
-
... mapping on the server: MKtl.find; k = MKtl( 'lpd80' ); k.gui; s.boot; k.reset; MIDIIn.noteOnZeroAsNoteOff_( false ); // we use Ndef in this example, to allow for a flexible redefining of the sound on the server Ndef( \testSynth, { arg freq ...
-
... state when they are pressed (on). k = MKtl( 'lpd80' ); k.gui; s.boot; k.reset; MIDIIn.noteOnZeroAsNoteOff_( false ); // ---------------- on - off -------------- // the simplest version is just on-off Ndef( \testSynth, { |on=0| SinOsc.ar( 4 ...
-
... w; a.gui; // Connect all midi devices & set up a midi-trigger for the CuePlayer MIDIIn.connectAll; a.midiTriggerNoteOn(note: 60, channel: 15); // Ready to trigger cues from an external midi-device hooked up on channel 15 upon sending note 6 ...
-
... \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 ); curve = unit.get( \curve ); if (a ...
-
... 0.0), lowx(1.0), mdepth(5.0), mfreq(2.0), midx(1.0), size(1.0), t60(1.0) | MIDIIn.connectAll /* MIDIdef.cc(\test, {arg ... args; args.postln}); MIDIdef.cc(\test).free; */ ( MIDIdef.cc(\t60, {|val, num| Ndef(\reverb).set(\ ...
-
... ble= false; } ); index= MIDIClient.sources.detectIndex{|x| x.uid==device.id}; //MIDIIn.disconnect(index, MIDIClient.sources[index]); //TODO disconnect needed? MIDIIn.connect(index, MIDIClient.sources[index]); ccResponders.do{|x| x.free}; se ...
-
... asBoolean)}; // rand stop/play itens ~loop.bufs[0].plot ( MIDIClient.init; MIDIIn.connectAll; MIDIdef.program(\sstep, {|k,f,c| var x; // k.postln; x = case { k==5 }{ Fdef(\loopTrig).value } { k==4 }{ Tdef(\loopStopPlay).play ...