-
SystemClock superclass: 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 th ...
-
... 2, 0, 1, doneAction:2)) // frees itself ) }).play(s); ) x.free; Clocks, such as SystemClock , provide a way to schedule things at arbitrary points in the future. This is similar to Synth.sched in SC2. ( SystemClock .sched(2.0,{ "2.0 seconds ...
-
... ts tempo and it is also aware of meter changes. 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 o ...
-
... anually. In most cases you will probably want to use a Clock (e.g. TempoClock , SystemClock , AppClock ) instead, in which the march of time is handled for you. *new(clock, drift) clock : a clock, like SystemClock. drift : if true, it will ...
-
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 ...
-
... for clocks Inherits from: Object Clock is a general scheduler - see subclasses: SystemClock , TempoClock , AppClock
-
... ndle(0.05,["s_new", "trig1" ,-1,0,0,0,rrand(0.02,0.25)]); 0.25.wait }) }).play( SystemClock ) ) This should sound like a continous sine wave, although it is actually a series of 0.25 second synths. ( SynthDef ( "trig1" ,{ var gate; gate = T ...
-
... ey can be used as a scheduling task. // compare: // a function, returning 0.5 ( SystemClock .sched(0.0, { "***" .postln; 0.5 } ); ) // a stream, returning 0.5 and 0.1 ( SystemClock .sched(0.0, Routine ({ loop { "***" .postln; 0.5.yield; "_* ...
-
... sk ({ { Synth .new( \help_walk , [ \freq , x.next]); 0.1.wait; }.loop; }).play( SystemClock ); ) r.stop;
-
... y") the routine. SuperCollider has three clocks, each of which has a help file. SystemClock // the most accurate AppClock // for use with GUIs TempoClock // to schedule in beats The .play message is a convenience that allows one to write r. ...