-
>> vol 1 midicc_(19) == radpost == MIDIdef.cc('hid1', {arg ...args; {|val| ("Ndef('track1').set('volume', " ++ val ++ ")").radpostcont.interpret; }.({|val| val.round(0.1)}.([-90.0, 6.0, 'db'].asSpec.map(args[0].linlin(0, 127, 0, 1.0))) )},1 ...
-
... (0/12))); q.makeNote(1, 60, 96); q.setBend(1, 8192 * (1 + (3/12))); */ // four MIDIdefs to listen to midi in // for on, off, bend, touch messages MIDIdef.noteOn(\roliOn, { |vel, noteNum, chan| "noteOn: % % %\n".postf(noteNum, vel, chan); q ...
-
... ll { } *getHIDType {arg type; var funcData; case {type == \midicc} {funcData = "MIDIdef.cc"} {type == \midion} {funcData = "MIDIdef.noteOn"} {type == \midioff} {funcData = "MIDIdef.noteOff"} {type == \midiptouch} {funcData = "MIDIdef.polyto ...
-
... MIDIIn.connectAll(); // this calls MIDIClient.init; input device is filtered in MIDIdef nk_last_seen = Dictionary[]; nk_sources = MIDIClient.sources.select {|e| e.device.containsi("nanoKontrol") }; if (nk_sources.size > 0 && nk_source.isNil ...
-
... { if(noteNum.notNil, { //Register On Function onFunc = {}; if(noteNum.notNil, { MIDIdef.noteOn(name ++ \On, {|val, num, chan, src| if (chan == channel, { onFunc.value(val, num, chan, src, name, displayDebugInfo); //velocity and midi note ar ...
-
... lient.init; MIDIIn.connectAll; // Definición de la acción al recibir notas MIDI MIDIdef.noteOn(\midiNoteOn, { |veloc, note, chan, src| // Crea y toca un evento sonoro [veloc, note, chan, src].postln; if (chan==0) { ( type: \note, // Tipo de ...
-
... rds_action = nil, <>stop_action = nil, <>play_action = nil, <>rec_action = nil, mididef_key, <outport = nil, <midiOut = nil; // change this only if you are writing a class for // nanoKONTROL3 with 9 knobs and faders var <nk2num = 8, <knobs_ ...
-
... t; window.background = Color.black; window.onClose = { "Closed GUI, freeing all MIDIdefs".postln; MIDIdef.freeAll; // add code to turn off all LEDs }; makeSliderLabel = { | parent, ccNum | var slider = sliderArray[ccNum]; var composite = Co ...
-
... dule; // boolean indicating whether the game is paused var isPaused = false; // MIDIdef to respond to MIDI input var midiDef; *new { |chordtris, numRows, numColumns, squareSize| ^super.new.init(chordtris, numRows, numColumns, squareSize) } ...
-
... um + ccInterval].flatten, chan, \control, srcID, argTemplate, dispatcher); } } +MIDIdef { *cc14 { arg key, func, ccNum, chan, srcID, argTemplate, dispatcher, ccInterval=32, lsbFirst=false; var wrapFunc, accumulatedValue; ^this.new(key, this ...