-
... n array each element of which corresponds to an arg in order // nil specs go to ControlSpecs.specs to look by name // to give a default value for a midi control, put it in the spec + SynthDef { miditest { arg channel = 0, specs, target, bus ...
-
... ity = argSens; dt = argDt; controllers = [ JInTC_Knock("Knock Surface", server, ControlSpec(0, 1, default: 0), // knock pressure audioInBus ).short_(\knock) ] } startCustom { if (notInitialized) { this.initialize; }; // fi this.controllers. ...
-
... { |spec| var center; spec = spec.copy; if( spec.isKindOf( FreqSpec ) ) { spec = ControlSpec.newFrom( spec ); }; if( spec.respondsTo( \warp ) ) { if( spec.warp.asSpecifier == \exp ) { center = spec.map( 0.5 ); center = center / spec.maxval; ...
-
... { |spec| var center; spec = spec.copy; if( spec.isKindOf( FreqSpec ) ) { spec = ControlSpec.newFrom( spec ); }; if( spec.respondsTo( \warp ) ) { if( spec.warp.asSpecifier == \exp ) { center = spec.map( 0.5 ); center = center / spec.maxval; ...
-
... dation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + ControlSpec { // fixes warp float input, thanks to @avdrd miSC_specAsArray { |synthName, metaKey = \specs, useGlobalSpecs = true| ^[this.minval, this.maxval, th ...
-
... .bounds; this.draw }); }; bounds = bounds ?? {userView.bounds}; spec = spec ?? {ControlSpec(0, 1, 'linear', 0, 0.5, "")}; domainSpec = domainSpec ?? {ControlSpec(0, 1, 'linear', 0, 0.5, "")}; GUI.skin.at(\plot).use { font = ~gridFont ?? { F ...
-
... a.blend2(b, 0.5, \sect) a.blend2(b, 0.5, \right) a.blend2(b, 0.5, \union) */ + ControlSpec { blend { |val1, val2, blend = 0.5| ^this.map( this.unmap(val1).blend( this.unmap(val2), blend ) ); } } + Dictionary { // mode is one of [ \left, \r ...
-
... ter.unit.notNil) { if (anOssiaParameter.unit.string == "gain.decibel") { widget.controlSpec.warp_(\db) }; }; }; if (anOssiaParameter.domain.min.notNil) { widget.controlSpec.minval_(anOssiaParameter.domain.min); widget.controlSpec.maxval_(an ...
-
... 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 ...