-
... して、クロックとともにルーチンをプレイします。 以下のコードはSuperColliderがイベントをスケジューリングする時に使用する3つのクロックを示します。 SystemClock .play(r.reset); // 最も正確 AppClock .play(r.reset); // GUI で使用する TempoClock .new.play(r.reset); // 主に拍でスケジューリングするために使われる ////////////////////////////// ...
-
... ion = 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 priority sound related tasks. ...
-
... r = Routine .new({ "...playing" .postln; 1.wait; "ok, that was it" .postln }); SystemClock .play(r); ) routine.play(clock) returns: the routine Routine .new({ "...playing" .postln; 1.wait; "ok, that was it" .postln }).play; stream.play(clo ...
-
... Pseq ([0, 2b, 3], 1), \dur , 2, \ctranspose , -7 ); Ppar ([a, b], inf ).play; ) SystemClock .sched(0, { TempoClock .default.tempo = [1, 2, 3, 5].choose.postln; 2 }); TempoClock .default.tempo = 1.0; // timing test: // parallel streams ( var ...
-
... ix.fadeTime = dt; ~mix.read([~s1, ~s2, ~s3].choose); dt.wait; }); }); ) t.play( SystemClock ); // change the sources meanwhile: ~s1 = { Blip .ar(105, 100, 0.2) }; ~s2 = { SinOsc .ar(350, 0, 0.1) }; ~s3 = { Pulse .ar(60, 0.2, 0.1) }; ~freq = ...
-
... cheduler Inherits from the abstract class Clock. TempoClock is a scheduler like SystemClock, but it schedules relative to a tempo in beats per second. *new(tempo, beats, seconds, queueSize) creates a new TempoClock scheduler with the given ...
-
... ed beat value. clock return the thread's clock. If it has not played, it is the SystemClock. ( r = Routine { arg inval; loop { // thisThread refers to the routine. postf( "beats: % seconds: % time: % \n" , thisThread .beats, thisThread .sec ...
-
... sometimes an indication of poor design. If this is the case, avoid them. a = 0; SystemClock .sched(2, { a.postln }); // crashes when scheduler fires the function When a scheduled function executes, if it returns a number, the function will ...
-
... ; z.score_(x); ) // play it z.play; // play and stop after one second ( z.play; SystemClock .sched(1.0, {z.stop;}); ) creating Score from a pattern SynthDescLib .read; // new pattern ( p = Pbind ( \dur , Prand ([0.3, 0.5], inf ), \freq , Pr ...
-
... y to set parameters of a Window or a GUI widget from a Routine , which uses the SystemClock by default, you must wrap it in a deferred function: { myWindow.bounds_( Rect(100,500,200,200) ) }.defer . You do not need to use .defer, if you use ...