-
// A simple window for controlling the MIDIClient // will init client upon creation and give control // over which device input to connect to a predefined port // // wslib 2005 MIDIWindow { classvar <currentDevice = 0; classvar <inIsOn = ni ...
-
... nders // must make sure the right device is set up as the first port var index; MIDIClient.initialized.not.if({ MIDIClient.init(MIDIPort.numPorts, MIDIPort.numPorts); if(Library.at(\chucklib, \midiSearches).isNil) { Library.put(\chucklib, \ ...
-
... nders // must make sure the right device is set up as the first port var index; MIDIClient.initialized.not.if({ // restricting connections breaks MIDIPort if there are more sources than given here // so I'm removing the restriction. Initial ...
-
... in(0.0,1.0,(-pi),pi)) } }); } *connectController{ // Connect midi controller if(MIDIClient.initialized.not, { "MIDIClient not initialized... initializing now".postln; MIDIClient.init; }); MIDIClient.sources.do{|src, srcNum| if(src.device == ...
-
... Finger. s.boot; ( // plug in a TriggerFinger var inPorts = 3; var outPorts = 3; MIDIClient .init(inPorts,outPorts); // explicitly intialize the client inPorts.do({ arg i; MIDIIn .connect(i, MIDIClient .sources.at(i)); }); ) k = JInT_Trigger ...
-
... first // assumes sources[0] is the MIDI clock source // if not, you should init midiclient yourself and manually // assign the right port to inport == 0 // using MIDIIn.connect(0, MIDIClient.sources[x]) MIDIClient.initialized.not.if({ MIDIC ...
-
... arg n; ^Controller.newP(ctl.copyRange(n,size-n), size-n); } midiInitialize { if(MIDIClient.initialized.not,{ MIDIClient.init; }); MIDIClient.sources.do({ arg endPoint; MIDIIn.connect(0, endPoint); }); MIDIIn.control = { arg source, channel, ...
-
... plitud basada en la velocidad de la tecla ).play; ) ( // Inicialización de MIDI MIDIClient.init; MIDIIn.connectAll; // Definición de la acción al recibir notas MIDI MIDIdef.noteOn(\midiNoteOn, { |veloc, note, chan, src| // Crea y toca un ev ...
-
... Funcs.any({ |item|item.enabled.not }) } or: force ) { midiFuncs.do(_.free); if( MIDIClient.initialized.not ) { MIDIIn.connectAll; }; midiFuncs = [ MIDIFunc.noteOn({ |val, num, chan, src| this.addNoteOn(src,chan,num,val); }).permanent_( true ...
-
... or midi: // use an existing source device, e.g. on mac, "IAC Driver" ~midisrc = MIDIClient.sources[0].device; // make all midi descs and mktls for them ~descs = MKtlDesc.loadDescs.select { |d| d.protocol == \midi }; ~mktls = ~descs.collect ...