-
... non 'gui' objects r = layout.layRight(300,300); // allocate yourself some space Button (layout.win,r) .action_({ arg butt; model.goApeShit; }); // note: NumberEditor is a cruciallib class numberEditor = NumberEditor (model.howFast,[0,100]) ...
-
... lculated. options - a list of additional information, e.g. flags about optional buttons. makeSkip - flag whether to make a skipjack to manage updates of the envirgui. default is true. // simple example g = NdefParamGui .new( nil , 5); // em ...
-
... 45, 10, 200, 20)).background_( Color .rand); a.string = " Current Frequency " ; Button .new(w, Rect (45, 70, 200, 20)).states_([[ "close" , Color .black, Color .rand]]).action_({w.close}); s.waitForBoot({ b= Bus .new( \control ,0,1); q= Syn ...
-
... e= "Freq" ; ); ) // Sound example ( // start server s.waitForBoot({ var w, startButton, noteControl, cutoffControl, resonControl; var balanceControl, ampControl; var node, cmdPeriodFunc; // define a synth SynthDef ( "window-test" , { arg no ...
-
... ool) bool - An instance of Boolean . Examples ( w = Window ( "mov" ).front; b = Button (w, Rect (0, 0, 150, 20)) .states_([[ "pick a file" ]]) .action_({ File .openDialog( "" , { |path| m.path_(path) }) }); m = MovieView (w, Rect (0,20,360, ...
-
... nColor : Color(0.5, 1, 0.5), offColor : Color.clear, gap : 0 @ 0, margin : 2@2, buttonHeight : 16 *cocoa Makes Cocoa (Mac OS X GUI) the current scheme and returns it. Subsequent GUI object calls to GUI are delegated to cocoa. Returns the cu ...
-
... o: SCWindow , SCModalWindow Dismissing Modal Sheets SCModalSheets have no close button. It is therefore very important that you add an SCButton or some other GUI widget to allow the user to dismiss the sheet. As an 'escape hatch' pressing t ...
-
... 0.1 }.play; ) // gate // mouse x on right side of screen toggles gate // mouse button does soft reset ( { var freq; freq = DemandEnvGen .kr( Dseq ([ Dseries (400, 200, 5), 500, 800, 530, 4000, 900], 2), Dseq ([0.2, 0.1, 0.2, 0.3, 0.1], inf ...
-
... e saying we're done 0.5.wait; "done" .postln; }.play; ) // Using Routine to set button states on the fly. ( var update, w, b; w = SCWindow .new( "State Window" , Rect (150, SCWindow .screenBounds.height-140,380,60)); // a convenient way to ...
-
... 2, \c -> 3, \f1 -> 4, \f2 -> 5, \f3 -> 6, \f4 -> 7, \l -> 8, \r -> 9, // arrow buttons \hu -> 10, \hl -> 11, \hr -> 12, \hd -> 13, // hat positions \x -> 14, \y -> 15, \z -> 16, // axes \slider -> 17, \hat -> 18 ]); )