-
... , 2, 3, 4, 2, 1, 0, -1, -2], inf ); str = Pavaroh (pat, aroh, avaroh).asStream; Routine ({ loop({ synth.set( \freq , midicps(str.next + 60) ); rrand([0.1,1.0].choose, 0.5).wait; }); }).play; )
-
... e) asStream { if(markovset.order > 1, { "not yet implemented".postln; ^nil }); ^Routine.new({ arg inval; var items, bag; items = [markovset.seeds.choose, 1, 1]; length.do({ if(items.notNil, { bag = markovset.dict.at(items.at(0)) }); items = ...
-
... (see Klank for an example). Refs can also be used to simplify the coding of co-routines used in EventStreams (see Prout for an example). x = Ref(nil); z = obj.method(x); // method puts something in reference x.value.doSomething; // retriev ...
-
... e returns angle of receiver conceived as Polar or Complex number. wait within a routine, yield the number so that the clock can wait for this many beats. (see Routine ) // create a routine by a function fork ( fork { 1.wait; "I did wait" .p ...
-
... ion gcInfo Iteration do generate dup Scheduling awake Stream Support next reset Routine Support yield yieldAndReset alwaysYield embedInStream idle iter cyc fin repeat loop nextN streamArg addFunc addFuncTo removeFunc removeFuncFrom instill ...
-
... 38)).front, Rect(5, 5, 320, 20)); view.onClose_{ controller.remove }; // run a routine to change the model's value: r{ 100.do{ model.value_(1.0.rand.postln).changed(\value); 0.5.wait; } }.play(AppClock) ) ⧉ ✔ helpfile source: /usr/local/sh ...
-
... .ar(freq, 0, env)) }).add; ) ( a = Pseq (#[60, 61, 63, 65, 72], inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , a.next.midicps]); 0.2.wait; }) }).play; )
-
... 00DRM0", argBaudrate, crtscts:true); CmdPeriod.add(this); this.softReset; task= Routine({this.prTask}).play(SystemClock); } close { "%: stopping and closing serial port".format(this.class.name).postln; task.stop; port.close; CmdPeriod.remov ...
-
... for RT sequencing: because of this aspect, it can be thought as a wrapper for a Routine . The task simply navigates the graph. From the starting vertex, it chooses randomly among the edges departing from it, sets the ending vertex as the ne ...
-
... ++ rrand(0,100).asString ++ " " ++ rrand(0,100).asString); 0.1.yield}}.fork}, "routine of random adding"); c.add(\stopTask, [\str], {a.stop}, "stop add routine"); c.add(\add, [\str, \num, \arr], {|str, num, arr| (num + arr).postln;}, "adds ...