-
... view.focusGainedAction_({ outMenu.focus(false); }); // timeGrid = DrawGrid(nil, ControlSpec(0, player.sf.duration, units: \s).grid, nil); timeGrid = DrawGrid(nil, nil, nil); timeGrid.fontColor_(skin.string); timeGrid.font_(Font("Arial", 10) ...
-
... son, pan, amp); OffsetOut.ar(out, son); }, metadata:(specs:( timeScale: ControlSpec(0.001,4,\lin, 0, 1), ))).store; SynthDef(\bass, { arg out=0, amp=0.1, gate=1, pan=0, freq=200; var sig; var sig1, sig2, sig3, sig4, sig5, si ...
-
... adaptFromObject { ^this } viewNumLines { ^1 } } + Nil { viewNumLines { ^1 } } + ControlSpec { makeView { |parent, bounds, label, action, resize| var view, vws, stp, labelWidth; vws = (); if( (minval != -inf) && { maxval != inf } ) { vws[ \v ...
-
... alue| ^this.constrain( value ); } unmap { |value| ^this.constrain( value ); } asControlSpec { ^ControlSpec( this.minval.asArray.mean.max( (2**24).neg ), this.maxval.asArray.mean.min( 2**24 ), \lin, 0, default.positions.asArray.mean, units ) ...
-
... }); if(GUI.id !== \cocoa, { specBut.pairsDo({ |k, v| v.toolTip_("Edit the CV's ControlSpec in '"++k++"':\n"++(this.getSpec(k).asCompileString)) }) }); nextY = nextY+14; [midiHead.hi, nextY, midiHead.lo, nextY+52].pairsDo({ |k, v| k.bounds_ ...
-
... descriptive information. Currently the 'specs' key in the event is reserved for ControlSpecs to be associated with SynthDef arguments (this is useful for automatic GUI construction). Metadata can be persisted to disk and loaded automaticall ...
-
... ight * 0.6)) .value_(ctkPEvent.ampSpec.unmap(ctkPEvent.amp.ampdb)) // setup the ControlSpec! .action_({arg slider; ctkPEvent.amp_(ctkPEvent.ampSpec.map(slider.value).dbamp); window.view.children[0].focus(true); }); ampNum = NumberBox(window ...
-
... f: 1.Executing code should return a SynthDef; 2.The SynthDEFaults should have ControlSpecs for every parameter to define an acceptable range; 3.The SynthDEFaults should not depend on things outside of the core lib or sc3-plugins; 4.The ...
-
... style.normal) .string_(pitchRange[1]) .align_(\right); // RIGHT ALIGN ampSpec = ControlSpec(0, 1, \linear, 0, 0); // min, max, mapping, step // AMPLITUDE globalVolSl = OSCIISlider(win, Rect(10, 290, 100, 12), "- vol", 0, 1, 1, 0.01, \amp) . ...
-
... ^1 } makeEditWindow { |inView, values, label, action, spec| var evws = (), canBeControlSpec = false, hasOriginalSpec = false, scrollHeight; var specViewHeight, originalViewHeight; var viewSpec; canBeControlSpec = this.respondsTo( \asControl ...