-
... chedule time-based behavior, even if no audio is involved. Both SystemClock and AppClock (a less accurate version which can call Cocoa primitives) have only class methods. Thus one does not create instances of them. If you need to have an i ...
-
... d.abs); 0.1.wait; b.x_(1.0.rand.abs); b.y_(1.0.rand.abs); }); b.select(-1); }); AppClock .play(r); ) //show boxes with a string in it: ( a = Window ( "text-boxes" , Rect (200 , 450, 450, 450)); a.view.decorator = FlowLayout (a.view.bounds); ...
-
... Rect(100,500,200,200) ) }.defer . You do not need to use .defer, if you use the AppClock . Creation / Class Methods *new(name, bounds, resizable, border, server, scroll) Creates a new SCWindow instance. You will need to call front (see belo ...
-
... cess fork({ 5.wait; synth.release; update.value(butt, "." ); 1.wait; w.close }, AppClock ); }); CmdPeriod .doOnce({w.close}); w.front; }); ) // complex drag and drop example // try dragging the buttons to white slot, adn then between white ...
-
... d); b.doAction; [0.1,0.2].choose.wait; }); 1.wait; n.free; {w.close}.defer; }); AppClock .play(r); }; ) Note: this forces the entire view to redraw at each step and will spend a lot of CPU .
-
... p; defer(delta) Delay the evaluation of this Function by delta in seconds. Uses AppClock . { "2 seconds have passed." .postln; }.defer(2); dup(n) Return an Array consisting of the results of n evaluations of this Function. x = { 4.rand; }.d ...
-
... t; 2.wait; Window .allWindows.pop.close; // close last opened window } }).play( AppClock ); ) // in a SynthDef ( SynthDef ( \help_EnvBlend , { | fact = 0 | Out .ar(0, EnvGen .kr( Env .perc.blend( Env .sine, fact), 1.0, doneAction: 2) * SinO ...
-
... Player, defaults to TempoClock.default . Patterns that change graphics must use AppClock . protoEvent The initial event modified by Pbind , defaults to Event.default . quant A quantization value used by clock. When a number, the pattern wil ...
-
... ion: { myView.value_(2) }.defer . You do not need to use .defer, if you use the AppClock . Creation / Class Methods *new (parent, bounds) parent - The parent view. bounds - An instance of Rect , or a Point indicating width@height. Accessing ...