-
... 1); x.put(x.size.rand, 8+0.1.rand2); Pseq (x,1); }); x = Pn (a, inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , (x.next*5+70).midicps]); 0.13.wait; }) }).play; ) // using event streams ( a = Plazy ({ var x, y; x = Arra ...
-
... q ([0, 0, 0, 4, 0, 3, 2], inf ) + a; c = Ptuple ([a, b], inf ); x = c.asStream; Routine ({ var chord; loop({ chord = x.next.postln.midicps; (instrument: \help_sinegrain , freq : chord).play; 0.2.wait; }) }).play; )
-
... tNodeID, 0, 1); s.sendMsg( \s_new , "help-SharedIn2" , y = s.nextNodeID, 0, 1); Routine ({ 30.do({ s.setSharedControl(0, 300 * (10.rand + 1)); 0.2.wait; }); s.sendMsg( \n_free , x); s.sendMsg( \n_free , y); }).play; ) s.quit;
-
... , 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 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 ...
-
... .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; )
-
... ( var w, r; w = Window .new( "trem" , Rect (512, 256, 360, 130)); w.front; r = Routine ({ arg time; 60.do({ arg i; 0.05.yield; { w.bounds = w.bounds.moveBy(10.rand2, 10.rand2); w.alpha = cos(i*0.1pi)*0.5+0.5; }.defer; }); 1.yield; w.close; ...
-
... e. { 1000000.do({ 1.0.rand }); }.bench; fork(clock, quant, stackSize) Returns a Routine using the receiver as it's function, and plays it in a TempoClock . { 4.do({ "Threadin..." .postln; 1.wait;}) }.fork; forkIfNeeded(clock, quant, stackSi ...
-
... 3; (1..n).do { |num| { num.rand }.dup(200).postcs }; ) // in streams, tasks and routines, this works just as well: ( fork { var n = 14; (1..n).do { |num| { num.rand }.dup(200).postcs; 1.wait; }; } ) ( fork { var str = Routine { |in| 10.do { ...
-
... parate groups for the sub patterns, but the class is currently broken. Pspawner(routineFunc): The function is used to make a routine. A Spawner object gets passed into this routine, and this object is used to add or remove streams to/from t ...