-
... ( // make a gui for it: e.makeWindow = { |env| var win, cnt; win = Window( "e", Rect( 128 + 100.rand, 300 + 100.rand, 400, 52 )).front; win.addFlowLayout; cnt = SimpleController( env ); win.onClose_({ cnt.remove }); // remove controller at ...
-
... uared }.value.postln; // posts 25 The Ref class provides a way to create an indirect reference to an object. It can be used to pass a value by reference. Ref objects have a single instance variable called ' value '. The ' value ' method ret ...
-
... menu. ( ~image = Image(64, 64).draw({ Pen.fillColor = Color.blue; Pen.fillOval(Rect(0, 0, 64, 64)); }); ~menu = Menu( MenuAction("checked", { "checked".postln }) .checked_(true), MenuAction("disabled", { "disabled".postln }) .enabled_(fals ...
-
... 1.set(\t_trig, 1); 0.wait;})}.fork w=Window.new("spatOSCexamplePreset voicing", Rect(500, 30, 400, 140)).front; w.view.decorator=FlowLayout(w.view.bounds); w.view.decorator.gap=8@2; g = EZSlider(w, 380@20, "pitch ", ControlSpec(40, 110, \li ...
-
... 0.2, kY: 0.2, kT: 0.7, sdX: 0.2, sdY: 0.4, sdT: 0.6, ); w = Window("SC grids", Rect(100, 100, 400, 580)); ["hh", "sd", "k"].do({|instrument, num| Slider2D(w, Rect(20, 20 + (180*num), 150, 150)) .x_(0.5) .y_(0.5) .action_({|sl| q[\pattern][ ...
-
... t.isNil) { // ProxyMixer may be up to 1086 wide parent = Window(model.docTitle, Rect(100, 200, 1120, 600)) .userCanClose_(false) .front; iMadeWindow = true; if(bounds.isNil) { bounds = parent.view.bounds.insetBy(5, 5) }; }; view = View(pare ...
-
... G.height); this.resizeSVG; } resizeSVG { var buttonSize = min( super.interactionRect.width, super.interactionRect.height ); var hRatio = buttonSize / thisSVGSize.x; var vRatio = buttonSize / thisSVGSize.y; var width; var height; thisSVG.fre ...
-
... Window( "Simple Harmonic Motion Animation — (spacebar to pause/unpause)", Rect(100, 100, 1020, 520) ).background_(Color.gray(0.2)).front; win.view.decorator_(FlowLayout(win.view.bounds, 10@10, 10@10)); cview = UserView(win.view, ...
-
... softVol_ and softVol_ which knows lastVol: ( w = Window ( "softSet, softVol" , Rect (500, 200, 400, 240)).front; w.view.addFlowLayout; PdefGui ( Pdef ( \test ), 2, w, 340@80); // can lose control if wiggled too fast EZSlider (w, 340@30, \s ...
-
... s . new Create a new EQui. Arguments: parent An optional parent View . bounds A Rect or Point specifying the bounds of the EQui. target A Synth or similar object (e.g. Ndef ) that will receive changes in this EQui's parameters. Generally on ...