-
... rSlider(window, Rect(10, 30, 200, 20)) .value_(1) .action_({|sld| synthInstance.set(\level, sld.value); lastLevel = sld.value; }); StaticText(window, Rect(10, 60, 100, 20)).string_("Limiter/LeakDC:"); limButton = Button(window, Rect(110, 60 ...
-
... controllers= List.newFrom([ SimpleController(cvs.out).put(\value, {|ref| synth.set(\out, ref.value); synthEq.set(\out, ref.value); inserts.do{|x| x.out= ref.value}; }), SimpleController(cvs.lag).put(\value, {|ref| synth.set(\lag, ref.value ...
-
... } ).add; x = Synth.new( \testSynth ); k.elementAt( \bt, 1 ).action = { |but| x.set( \on, but.value ) }; // button press turns the sound on // button release turns sound off // reset all k.reset; x.free; // slightly more complex - continuou ...
-
UIFactories { classvar <>formaters; // Define a class variable with getter and setter *new { formaters = Dictionary.newFrom([ \toDecibels, {|value| "%dB".format(value.ampdb.linlin(-40, 0, -60,0).round(1e-1)) }, \toMilliseconds, {|value| "%m ...
-
... nction:record result in sound opening in an editor *new { arg server, channels, setting = nil; ^super.new.initXiiRecorder(server, channels, setting); } initXiiRecorder {arg server, channels, setting; var bgColor, foreColor, spec, outbus; va ...
-
... w = Window ( "ScaledUserView" ).front; b = ScaledUserView ( w, w.view.bounds.insetBy( 10 , 10 ), Rect ( 0 , 0 , 1 , 1 ) ); b.drawFunc = { Pen .line( 0.1 @ 0.1 , 0.9 @ 0.9 ).stroke; }; b.view.resize = 5 ; ) The Pen:width is set by ScaledUse ...
-
... used to obtain the resource from the adapted objects. eg. to fetch the Bus, get/set value, set action etc. they do not hold any state or reference to specific objects */ AbsMxAdapter {} AbsMxFuncAdapter : AbsMxAdapter { var <>func, >getServ ...
-
UMarker : UEvent { classvar <>defaultAction; classvar <>presetManager; classvar <>current; classvar <umarkerIndex = 0; var <name = "marker"; var <>score; // set at playback from score var <action; var <notes; var <autoPause = false; *initCl ...
-
UMarker : UEvent { classvar <>defaultAction; classvar <>presetManager; classvar <>current; classvar <umarkerIndex = 0; var <name = "marker"; var <>score; // set at playback from score var <action; var <notes; var <autoPause = false; *initCl ...
-
... sh { state = Array.fill(numChannels, 0); } // expects int values between 0..255 setRaw {|key, rawVal, send = false| var idx; key.isKindOf(Integer).if({ idx = key; }, { idx = idxKeys[key] }); idx.notNil.if{ state.overWrite(rawVal.asArray, id ...