-
... =1,{ pads.at(x,0).responseOn; },{ pads.at(x,0).responseOff(pads.at(x,0)); }) }; MIDIClient.init; midisource=MIDIClient.sources.detect{|a|a.name.contains("Launchpad")}; if(midisource.notNil,{ mididestination=MIDIClient.destinations.detect{|a ...
-
... ) // Playing (outputting) MIDI notes on midi channel 1 ( k = MIDIKeyboard .new; MIDIClient .init; m = MIDIOut (0, MIDIClient .destinations.at(0).uid); k.keyDownAction_({ arg note; m.noteOn(0, note, 60);}); // (midi channel 1, midinote, velo ...
-
... { //////////// SET UP CONNEXIONS var sources, destinations; var uid; // midi in MIDIClient.init; sources=MIDIClient.sources; // connect supercollider to controller destinations = MIDIClient.destinations; destinations.do { |dest, portNumber| ...
-
... this.findPort ? inPort; allViews = this.makeWindow( height ); }; } *findPort { ^MIDIClient.sources.detectIndex({ |item| item.device == "nanoKONTROL" }); } *buttons { |scene| if( scene.notNil ) { ^allViews[ scene ][18..]; } { ^allViews.colle ...
-
... start; } /* JITseto.action = nil; // */ ) /////////////////////// // Midi Mixer MIDIClient .init; MIDIIn .connect; ( MIDIIn .control = { |port, chan, ctlNum, val| [chan, ctlNum, val].postln; (ctlNum == 7).if{ (chan == 8).if{ // master fader ...
-
... ITseto.action = nil; // */ \ )\ \ \ /////////////////////// \ // Midi Mixer \ \ MIDIClient .init;\ MIDIIn .connect;\ \ (\ MIDIIn .control = \ |port, chan, ctlNum, val| \ [chan, ctlNum, val].postln;\ \ (ctlNum == 7).if\ // fader \ (chan == 8 ...
-
... er| ^super.new.init(app) } init{|anApp| app = anApp; this.initMIDI; } initMIDI{ MIDIClient.init; MIDIIn.connectAll; synths = Dictionary.new; MIDIFunc.noteOn({|vel, key| var tab = app.gui.tabs[app.gui.tabView.activeTab.index]; var name = "co ...
-
... t( \ , 1);\ //block.out = 0 \ \;\ \ /////////////////////// \ // Midi Mixer \ \ MIDIClient .init;\ MIDIIn .connect;\ \ (\ MIDIIn .control = \ |port, chan, ctlNum, val| \ [chan, ctlNum, val].postln;\ \ (ctlNum == 7).if\ // fader \ (chan == 8 ...
-
... But = Button(tabView1, Point(60, 15)) .font_(staticTextFont) .action_({ |mb| if(MIDIClient.initialized, { MIDIClient.restart; midiConnectAll.value; }, { MIDIClient.init; midiConnectAll.value; }); wcm.midiDisplay.model.value_( wcm.midiDispla ...
-
... ile.close } } { "can't open cheatsheet.txt".warn; }; }; if(MBM.exists(0).not) { MIDIClient.init; midiIndex = MIDIClient.sources.detectIndex { |endpt| endpt.device.containsi(midiDevice) }; MIDIPort.init(midiIndex.asArray); MIDIBufManager(nil ...