-
... in value = 1; // initialize to middle (no bending) }, { spec = spec.asSpec ?? { ControlSpec.new }; }); // if making the midisocket after control has been globalized, use existing // else make a new global control gc = destination.globalCont ...
-
... pecs: Passed in via param, local specs in the object or global specs defined in ControlSpec.specs specs = specs ?? {object.getSpec} ? ControlSpec.specs; funcName = funcName ?? { object.key }; paramNames = paramNames ?? { object.getHalo(\ord ...
-
... ider( parent: win, bounds: Rect(830, 10, 50, 170), label: "volume", controlSpec: ControlSpec(-60, 0, \lin, 1, -40, "dB"), action: {|ez| masterOut.set(\amp, ez.value.dbamp)}, unitWidth: 30, labelWidth: 80, layout: 've ...
-
... ) lastVal the previous value that a control has set - see last examples. spec a ControlSpec can be passed in. if nil, param.asSpec is used. NOTE: if no spec is given, or no value exists yet, softSet simply allows setting. Examples ( e = (am ...
-
+OSCresponder { free { ^this.remove } } +ControlSpec { safeHasZeroCrossing { var thisMinSign, thisMaxSign; #thisMinSign, thisMaxSign = [minval, maxval].collect{ |val| if(val.isArray) { val.sign.mean } { val.sign } }; ^thisMinSign != thisMax ...
-
... ure.dmxAddr.asString, fixtureBounds, Font.monospace(30)); }; } ) ) ); dmxSpec = ControlSpec(0, 255, \lin, 1); } *new {|dmxAddr = 0, numChannels = 1, universeId = 0, desc, device| ^super.new.init(dmxAddr, numChannels, universeId, desc, devic ...
-
... looks for Spec.specs.at(\freq) If nothing is found there, it will default to a ControlSpec with a range of 0 .. 1 These specs are used by Patch to determine the suitable type of input. They may be used in many other situations, and you wil ...
-
... gate, gate) ) },[0.1,0.1,0.1,0.1,0.1,nil]).play(s); w = Window.new.front; int = ControlSpec(-48,48,\linear,1); v = TabletSlider2D(w,Rect(10,10,380,380)); v.background = Color.blue.alpha_(0.2); v.knobColor = Color.red; v.action = { arg view, ...
-
... Min, inMax, outCenter, outMin, outMax, clip) } // hmmm... dubious... (works for ControlSpec though) < { arg that, adverb; ^this.rho.perform( thisMethod.name, that.asPoint.rho, adverb ) } > { arg that, adverb; ^this.rho.perform( thisMethod.n ...
-
... ent.init; MIDIIn.connect(0, MIDIClient.sources.at(0)); g = Group.new; cutspec = ControlSpec(100, 10000, \linear, 0.001); cutbus = Bus.new(\control, 1, 1, s); cutbus.value = 10000; rezspec = ControlSpec(1, 0, \linear, 0.001); rezbus = Bus.ne ...