-
Getenv : UGen { *new { |key, defaultval=0| ^this.multiNewList(['scalar', key, defaultval]); } *new1 { | rate, key, defaultval | key = key ? \SHLVL; // SHLVL is numeric, at least... key = key.asString.collectAs(_.ascii, Array); ^super.new.ra ...
-
// contributed by gil fuser /* * todo: * test on osx * add gui layout MKtl(\x, "*mpk*2").gui; MKtl(\x).trace; */ ( deviceName: "MPKmini2", protocol: 'midi', deviceType: 'midiKeyboard', elementTypes: [\knob, \key, \pad, \bend], status: ( lin ...
-
Pinbox : EventPatternProxy { var <>channel; *new { arg channel, quant, condition = true, source; ^super.new.source_(source).channel_(channel).condition_(condition).quant_(quant) } receiveEvent { arg inval; var incoming, news = inval.eventAt ...
-
... ]) * 127.0).round.asInteger; ctls.do { |key| midi.cc(key, value) }; }; learning.keysValuesDo { |name, controlSpec| midi.addCtl(spec[0], name, controlSpec.dereference); }; // otherwise ignore unknown (bc this function gets *everything*) lear ...
-
[ [ 'nntd', {arg bus=1->[1,8,{|val| val.round(1)}], amp = 1->[0.1,2], lowcut= 20->[20,2000,\exp], hicut= 20000->[200,20000,\exp]; var input, highpass, lowpass, key; input = SoundIn.ar(bus-1); highpass = HPF.ar(input,lowcut); lowpass = LPF.a ...
-
... sDict.asArgsArray; } } + Dictionary { isArgsArray { ^false } isArgsDict { ^this.keys.every({ |item| item.class == Symbol }); } asArgsDict { |check = false| if( check && { this.isArgsDict.not } ) { "Dictionary-asArgsDict:\ninput is not a val ...
-
... at class. - Example - // define the network x = SWDataNetwork .new; // add some keys to the spec (SWDataNetwork forwards these methods to the spec): x.add( \accelerometer , 1 ); x.add( \acc_x , [1,0] ); x.add( \acc_y , [1,1] ); x.add( \acc_ ...
-
// Contributed by Nathan Ho. // updated for 0.9.0 by adc /* MKtlDesc.loadDescs("*oxygen49"); k.free; k = MKtl('o49', "m-audio-oxygen49"); k.trace.gui; a = Array.fill(9, 0); m = MultiSliderView().elasticMode_(1).size_(9).front; k.elAt(\sl).a ...
-
... 5, 7, 9, 11]), stepsPerOctave ? 12, root, tuning ? 0, cpsFunc).init; } *newFromKeys { arg keys, stepsPerOctave, tuning, cpsFunc; ^this.new(keys - keys.first, stepsPerOctave, keys.first, tuning, cpsFunc) } storeArgs { ^[scale, stepsPerOctav ...
-
// Novation Launchpad specs: // Mostly NoteOn / NoteOff, some cc messages, // no hardware scenes, flattened out with underscores /* MKtlDesc.loadDescs("*launchpad"); m.free; m = MKtl(\lp, "*launchpad"); m.gui; */ ( deviceName: "Launchpad", ...