-
AppClock superclass: Clock SystemClock is more accurate, but cannot call Cocoa primitives. AppClock is less accurate (uses NSTimers) but can call Cocoa primitives. You will need to use the SystemClock to get accurate/musical scheduling. *sc ...
-
... perclass: Clock SystemClock is more accurate, but cannot call Cocoa primitives. AppClock is less accurate (uses NSTimers) but can call Cocoa primitives. *sched(delta,task) the float you return specifies the delta to resched the function for ...
-
... bject Clock is a general scheduler - see subclasses: SystemClock , TempoClock , AppClock
-
... ects know how to play themselves. { PinkNoise .ar(0.1) }.play; // Function ( // AppClock var w, r; w = Window .new( "trem" , Rect (512, 256, 360, 130)); w.front; r = Routine ({ arg appClockTime; [ "AppClock has been playing for secs:" ,appC ...
-
... r{ 100.do{ model.value_(1.0.rand.postln).changed( \value ); 0.5.wait; } }.play( AppClock ) )
-
... Two other kinds of clock exist: SystemClock , which always runs in seconds, and AppClock , which also runs in seconds but has a lower system priority (so it is better for graphic updates and other activities that are not time critical). Sch ...
-
... ove all, of course a.action = nil ; GUI Timing: System Clock and App Clock See: AppClock , TempoClock , SystemClock Calls to the gui system from from the lang must be made from the AppClock, since the SystemClock is reserved for high priori ...
-
... { (0, 0.01 .. 1).do{ |pos| w.view.background = g.at(pos); 0.01.wait; }; }.play( AppClock ) )
-
... ; 1.wait; doc.background_( Color .blue(alpha:0.8)); 1.wait; doc.close; }).play( AppClock ); ) front Bring a document to the front. Document .listener.front unfocusedFront Bring a document to the forn without focusing it. Document .listener. ...
-
... thin a routine or scheduled function that is executing on some clock other than AppClock. AppClock is the only clock that can execute GUI manipulation because it is a lower priority thread. If the CPU is busy with audio synthesis or maintai ...