-
... lse, <w, step, <ms; *initClass { Warp.warps.put(\array, ArrayWarp) } *new { arg spec, array; ^super.new(spec.asSpec).init(array); } init { arg argArray; array = argArray ? [0.0,1.0]; array = array.normalize; step = spec.step/spec.range; } s ...
-
... lse, <w, step, <ms; *initClass { Warp.warps.put(\array, ArrayWarp) } *new { arg spec, array; ^super.new(spec.asSpec).init(array); } init { arg argArray; array = argArray ? [0.0,1.0]; array = array.normalize; step = spec.step/spec.range; } s ...
-
... } branchNames { ^branches.keys.asArray.sort } asDict { | addArgNames = true| ^( specs: this.values, relSpecs: this.relValues, baseSpecs: this.baseValues, branches: branches.collect(_.asDict(false)), metaData: metaData, argNames: if(addArgNa ...
-
... xUnitApp { asJSON { ^( name: this.name, id: this.id, point: this.point.asArray, spec: this.spec.asJSON, inlets: this.inlets.collect(_.asJSON), outlets: this.outlets.collect(_.asJSON) ) } } + MxInletApp { asJSON { ^( name: this.name, index: ...
-
... //TODO optional smoothing, rounding subclasses? var <value, lastValue; var viewsSpecs, defaultSpec, lastViewValue; var >action; var softSetLastTime; *new { ^super.new.initSGUIelement; } initSGUIelement { value= 0; lastViewValue= 0; viewsSpe ...
-
... d(round) + (detune/100)) + transpose - 69 / 12); }) .mappedArgs_([ \note ]) .setSpec( \note, UAdaptSpec({ |spec| ControlSpec( spec.minval.cpsmidi, spec.maxval.cpsmidi, \lin, 0, spec.default.cpsmidi ); }) ) .setSpec( \round, [0,12,\lin,0,1] ...
-
/* A CV models a value constrained by a ControlSpec. The value can be a single Float or an array of Floats. Whenever the CV's value changes, it sends a changed message labeled 'synch'. This way dependants (such as GUI objects or server valu ...
-
... messages *nextPair { |obj, paramName, value, within = (defaultWithin), lastVal, spec| var currVal, currValNorm, lastValNorm, newValNorm, closeEnough; var nextPair; spec = (spec ?? { this.getSpec(obj, paramName); }).asSpec; currVal = obj.get ...
-
/* \map Maps a value between 0 and 1 to a specific range, with user-settable warp (linear, exponential etc.). The warp setting overrides that of the input spec. It can also be used to covert time or integers to a specific range for modulati ...
-
... single param of an object by a relative normalized amount. let obj provide the spec, if there is none, make it unipolar. // tests: Ndef(\a).gui.moveTo(0,400); // does nothing (no current value yet) RelSet(Ndef(\a), \freq, 0.05); // works w ...