-
... { arg layout; var l; l=this.guify(layout); num = NumberEditor(model.amp.ampdb, ControlSpec(0.ampdb, 2.ampdb, \db, units: " dB")); num.action_({ arg val; model.amp_(val.dbamp) }); num.gui(l); if(layout.isNil, { l.front }); } update { arg ch ...
-
// SOUND 2 // the DubCat example from udk gencomp class: ( // controlspecs Ndef(\cat).addSpec(\pFreq, [20, 400, \exp]); Ndef(\cat).addSpec(\pWidth, [0.01, 0.5, \exp]); Ndef(\cat).addSpec(\filt, [1, 32, \exp]); Ndef(\cat).addSpec(\q, [1, 100 ...
-
... nc_({ |unit, key, umapdef| var spec; spec = unit.getSpec( key ); spec.isKindOf( ControlSpec ) && { spec.default.size < 2 && { spec.minval > 0 && { spec.maxval < inf } } }; }) .mappedArgs_( [ \time ] ) .category_( 'convert' )
-
... if { this.miSC_expandCtrs(x, metaKey, useGlobalSpecs) }{ x } } } miSC_findGlobalControlSpec { var item = Spec.specs[this]; ^item.isKindOf(ControlSpec).if { item }{ nil }; } miSC_getControlTuples { | exclude, metaKey = \specs, useGlobalSpecs ...
-
// SOUND 2 // the DubCat example from our Class: // controlspecs Ndef(\cat).addSpec(\pFreq, [20, 400, \exp]); Ndef(\cat).addSpec(\pWidth, [0.01, 0.5, \exp]); Ndef(\cat).addSpec(\filt, [1, 32, \exp]); Ndef(\cat).addSpec(\q, [1, 1000, \exp]); ...
-
... r(p,freq * ffreqInterval.midiratio,rq); Enveloper2.ar(p,trig,env) },[ nil, nil, ControlSpec(-48,48,\linear,1,0), nil, \envperc, \qnty, StaticSpec(0,20) ],\audio); Instr([\synths,\PulseFix],{ arg trig=1.0, freq=440, ffreqInterval=0,rq=0.4,en ...
-
... out(w.view.bounds); w.view.decorator.gap=8@2; g = EZSlider(w, 380@20, "pitch ", ControlSpec(40, 110, \lin, 1, 60)); g.action_({ |ez| ( ~ballSet.set(\note, [ ez.value, i.value, j.value ] ))}); i = EZSlider(w, 380@20, "amp", ControlSpec(0, 1, ...
-
... updateCalibrationNumbers; var calibrateRoutineGui; var resetButton; var xSpec= ControlSpec(-4500, 4500, 'lin', 0, 0); //TODO check for real min and max var ySpec= ControlSpec(-4500, 4500, 'lin', 0, 0); var zSpec= ControlSpec(-9000, 0, 'lin ...
-
... controller.set(\freq, 600); /* ~view = ExtendableObject(EZSlider(bounds:300@40, controlSpec:\freq).alwaysOnTop_(true)); ~view.update = { |sender, receiver, selector, key, val| if(selector == \put) { ~view.object.value = val } }; ~controller ...
-
... 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 ...