-
... lo, world" }; f.value; これはルーチンの中に関数を配置したものです。.yieldメッセージを送ることで関数の中の式を評価します。 r = Routine ({ "hello, world" .yield.postln }); ルーチンを実行するには、評価して下さい。 // ルーチンを評価するには、.nextメッセージを送る r.next; もう一度やってみましょう。 r.next; これは一度ルーチンが"yield"(受け渡す)すると、関数の中にさらなる ...
-
... n't repeat }); ) In SC3 time-based sequences of events can be implemented using Routines. A Routine which yields a number can be scheduled using a clock: ( var w, r; w = Window .new( "trem" , Rect (512, 256, 360, 130)); w.front; r = Routine ...
-
... <>history, <>pos = 0; var value = 0, latestValue = 0, <>updated = false; var <>routine; var <color; var <>active = false; var <>interval = 1; init { |parent, bounds| super.init( parent, bounds ); history = Array.fill( this.bounds.asRect.wi ...
-
... repeat }); ) ⧉ ✔ In SC3 time-based sequences of events can be implemented using Routines. A Routine which yields a number can be scheduled using a clock: ( var w, r; w = Window.new("trem", Rect(512, 256, 360, 130)); w.front; r = Routine({ a ...
-
... a = value . b = value . next ( inval ) . operator = value . reset Examples x = Routine { 6.do { |i| i.yield } } + 64; x.dump ⧉ ✔ ( x = Routine { 6.do { |i| i.yield } } + 64; x.next.postln; x.next.postln; x.next.postln; x.next.postln; x.nex ...
-
... Inherited instance methods Undocumented instance methods asStream embedInStream routineFunc Examples Classes | Streams-Patterns-Events > Patterns'>Patterns > Patterns>Function'>Function Prout : Pattern : AbstractFunction : Object routine pa ...
-
... mber of times. Function-loop repeats the function forever. f = { 3.yield }; x = Routine({ f.loop }); 10.do({ x.next.postln }) Object-repeat(n) repeat to yield the object x = 5; y = x.repeat(6); y.nextN(8); Pattern-repeat(n) x = Prand([1, 2] ...
-
... world" }; f.value; ⧉ ✔ これはルーチンの中に関数を配置したものです。.yieldメッセージを送ることで関数の中の式を評価します。 r = Routine({ "hello, world".yield.postln }); ⧉ ✔ ルーチンを実行するには、評価して下さい。 // ルーチンを評価するには、.nextメッセージを送る r.next; ⧉ ✔ もう一度やってみましょう。 r.next; ⧉ ✔ これは一度ルーチンが"yield"(受け渡し)すると ...
-
... t, server, notify = true| // async version; works for 500+ buffers var buffers, routine; path = path.standardizePath; routine = Routine({ buffers = names.collect({ |item, i| var bufnum = nil, buffer; // if bufnumoffset is not nil, the buffe ...
-
play: Filter: play Clocks, Routines, Streams and Patterns clock.play (stream) routine.play (clock) stream.play (clock) pausestream.play (clock) / task.play (clock) pattern.play (clock, protoEvent) Playing single Synths from SynthDefs on the ...