-
Routines and clocks Use clocks to create automated, algorithmic scheduling. Among the things that clocks "play" are routines, tasks, and patterns. To see how a clock "plays" a routine, first examine how a function works in a routine. The fi ...
-
Routine Superclass: Thread Routines are functions that can return in the middle and then resume where they left off when called again. Routines can be used to implement co-routines as found in Scheme and some other languages. Routines are u ...
-
... for handling text and for generating music. Two Stream classes: FuncStream and Routine FuncStream(nextFunction, resetFunction) A Function defines a stream consisting of the Function itself, a FuncStream defines a stream that consists of ev ...
-
Proutine pattern that embeds a routine function superclass: Pattern Proutine(func) embeds the routine function. func - routine function See also: Prout Proutine is similar to Prout, it only simply embeds the function instead of creating a s ...
-
Sequencing with Routines and Tasks When you schedule a function (as in the Scheduling Events tutorial), the function always begins at the beginning and runs through to the end. For sequencing, it's more useful to have a control structure th ...
-
... one finds in Nyquist, Elody, Siren, Kyma, HMSL, DMix, and Patchwork. By using coroutines and streams rather than eager functional methods it is able to work in a lazy event by event method instead of the all-at-once method of Elody and Sire ...
-
... xt value from both streams. It responds to reset by resetting both Streams. x = Routine { 6.do { arg i; i.yield; } } + 64; x.dump ( x = Routine { 6.do { arg i; i.yield; } } + 64; x.next.postln; x.next.postln; x.next.postln; x.next.postln; x ...
-
Prout routine pattern superclass: Pattern Prout(func) Returns a routine from the function. func - routine function See also: Proutine, Routine note that there is a shortcut to create a Prout: p(func) // example ( var a; a = Prout ({ loop { ...
-
... notebook.. see also: [ RandSeed ] [ Pseed ] [ Thread ] // every thread, also a Routine, has a random generator seed: ( r = Routine ({ loop({#[1,2,3,4,5].choose.yield }) }); r.randSeed = 1923; ) // using the routine to fill an array Array . ...
-
... lo, world" }; f.value; これはルーチンの中に関数を配置したものです。.yieldメッセージを送ることで関数の中の式を評価します。 r = Routine ({ "hello, world" .yield.postln }); ルーチンを実行するには、評価して下さい。 // ルーチンを評価するには、.nextメッセージを送る r.next; もう一度やってみましょう。 r.next; これは一度ルーチンが"yield"(受け渡す)すると、関数の中にさらなる ...