-
... cmd there is now a user signal defer(e { ~window = GUI .window.new( "signal" , Rect (10, 300, 100, 50)); GUI .button.new(~window, Rect (5, 5, 90, 30)) .font_( GUI .font.new( "Helvetica" , 20)) .states_(#[[ "stop" ]]) .action_(e { ~done.val ...
-
... self or a new FlowView . bounds inner bounds of the top level view. Returns: a Rect . asPageLayout ( name , bounds ) Similar to asFlowView, this message converts nil and various other objects to a PageLayout. This is already a PageLayout, ...
-
... 123 , { "command <-".postln; }); w = GUI.window.new.front; v = GUI.slider.new(w,Rect(10,10,100,100)); v.keyDownAction = k; v.focus; ) ⧉ ✔ Any player's gui can have its keyDownAction set ( p = Patch({ arg freq=440; SinOsc.ar(freq,mul: 0.1) } ...
-
... ing )); defFile.close; filePath.postln; } edit {|elHeight = 20| this.makeWindow(Rect(0, 0, 620, Window.screenBounds.height - 20), elHeight) } makeWindow {|bounds, elHeight = 20| var playButton, saveButton, codeView; var pad = 10; var width; ...
-
... }; if( parent.class == String ) { parent = Window( parent, bounds = bounds ?? { Rect(128 rrand: 256, 64 rrand: 128, 342, 400) }, scroll: false ).front; }; this.makeViews( bounds ); } speakerConf_ { |newSpeakerConf| controller.remove; speake ...
-
... uiData.window.isNil, { guiData.window = Window( "Wavetable Builder", Rect(0, 0, d.windowWidth, d.windowHeight) ).front; w = guiData.window; w.view.resize_(5); w.view.background_(d.colWindow); w.alwaysOnTop = d.alw ...
-
... l.spline.points.last[0]}; splineGui = this.make2DSpline(focusedDim).gui(layout, Rect(0, 0, layout.bounds.width, 150), model.spec, ControlSpec(0, maxTime)); splineGui.onSelect = { arg i; pointSelector.activeValue = if(i.isNil, {-1}, {i}); }; ...
-
... unds; var id, ins, slots; spec = [-120, 12, \db].asSpec; bounds = argBounds ?? {Rect(400, Window.screenBounds.height - 120, 1200, 60)}; parent.notNil.if({ win = parent; width = parent.bounds.width; dec = parent.view.decorator; }, { width = ...
-
... nterpreted graphically ( var win = Window("Example Graphical LSystem", bounds:Rect(0,0,1000,700)); var view = UserView(win, win.view.bounds.insetBy(50,50)); var lsys = LSystem( iterations:12, axiom:"FX", constants:Set[], ...
-
... ; Pen.fill; }); ~stopIcon = Image(40).draw({ Pen.fillColor = Color.red; Pen.fillRect(Rect(10, 10, 20, 20)); }); ~startAction = MenuAction("start") .action_({ ~playSynth.() }) .icon_(~startIcon) .toolTip_("Start playing synth.") .shortcut_(" ...