-
... m, chan, src = args; slider = this.varCtrSliders[varSliderIndex]; spec = slider.controlSpec; val = spec.map(val / 127); { this.updateVarSliders (key, varNum, val, indexOffset) }.defer; }, ccNum, chan, srcID); } midiBindSynthSlider { |key, s ...
-
// SOUND 2 // the DubCat example from our Class: ( // controlspecs // // if JITLibExtensions are used, you can make space local: // Ndef(\cat).addSpec(\pFreq, [20, 400, \exp]); // Ndef(\cat).addSpec(\pWidth, [0.01, 0.5, \exp]); // Ndef(\cat ...
-
... , [ \direction, 0.0, \mode, \line ] ) .changesT_( false ) .setSpec( \direction, ControlSpec(0,1) ) .setSpec( \mode, ListSpec([\line, \circle, \spacing, \spacing_nearest]) );
-
... umberboxes are attached using the -addView method. Optionally one can provide a ControlSpec . Attached views only redraw when -update is called (e.g. inside a slow running Routine ). There is no need to defer these update calls and the actu ...
-
... t(width: 190, height: 20) ).background_(Color.fromHexString("#A0A0A0")); spec = ControlSpec(0.ampdb, 2.ampdb, \db, units: " dB"); volSlider.value = spec.unmap(0); volSlider.canFocus = false; volSlider.action = { arg slider; Server.default.v ...
-
... berrect, slidrect; font = GUI.font.new("Helvetica", 12); lastval= start; spec = ControlSpec(min,max,warp,step,start); if ( GUI.id == \cocoa, { namerect= Rect(bounds.left,(bounds.height)+bounds.top,(bounds.width)-30, 20); numberrect= Rect(bo ...
-
... Dictionary[ // has an extra arg SimpleNumber -> { arg n,spec; if(spec.class === ControlSpec,{ KrNumberEditor(n,spec) },{ NumberEditor(n,spec) }) }, Env -> { arg e,levelSpec; EnvEditor(e,levelSpec) }, Dictionary -> { arg e; DictionaryEditor( ...
-
... ictionary[ // has an extra arg SimpleNumber -> { arg n, spec; if(spec.class === ControlSpec, { KrNumberEditor(n, spec) }, { NumberEditor(n, spec) }) }, Env -> { arg e, levelSpec; EnvEditor(e, levelSpec) }, Dictionary -> { arg e; DictionaryE ...
-
... n first. lastVal the previous value that the controller has set - can be spec a ControlSpec can be passed in. if nil, \amp.asSpec is used. Examples Ndef(\test, { |freq=200| Splay.ar(SinOsc.ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef(\te ...
-
... t) data the data; format: [[aX, aY],[bX, bY],[cX, cY],[dx, dy], ... ] specX the ControlSpec indicating the Specification of the X-Axis specY the ControlSpec indicating the Specification of the Y-Axis background(color) set background-color s ...