-
... nvGen .ar( Env .perc(0.001, 0.03, 0.4), doneAction:2) }; // jittery tone. ( r = Routine { loop { 200.do { arg i; ~x.spawn; (0.005).wait; }; 1.wait; } }.play; ) ProxySynthDef .sampleAccurate = true ; // steady tone, because sample accurate. ...
-
... layed on a clock, but streams made from these patterns can be used in scheduled routines or functions as well. Only a scheduling context can ensure precise timing of requests for values. Ptime(repeats): Returns the amount of time elapsed si ...
-
... e we stored the Synths in an Array, we can also control them individually ( r = Routine ({ inf .do({ l.do({ arg node; node.set( "freq" ,rrand(10,120)); 1.0.wait; }); }) }); r.play; ) // g is in a group too. Since we didn't specify it's the ...
-
... /////////////// // scale the duration of the envelope for every new synth ( r = Routine ({ loop({ Synth ( "timeScale" , [ \ts , 0.01.rrand(0.3)]); 0.5.wait; }) }); ) r.play /////////////////////////////////////////////////////////////////// ...
-
... 5);w.close;}); //defer or crash, because FreqScopeWindow Class contains its own routine for cleaning up on CmdPeriod w.onClose_({n.free;f.free;freq.free}); }); )
-
... unc, repeats): Get values from the function, but stop after 'repeats' items. * Proutine(routineFunc): Use the function like a routine. The function should return values using .yield or .embedInStream. Additional List Patterns Pser(list, rep ...
-
... erPattern Pspawn is a pattern-based version of Pspawner . Where Pspawner uses a Routine-style function to determine when and how to spawn child patterns into the result stream, Pspawn uses an event pattern to determine the actions to take. ...
-
... { arg item; item.postln }); // iterates from eight to twenty, with stepsize two Routine ({ var i=10; while { i > 0 } { i.yield; i = i - 5.0.rand } }).do({ arg item; item.postln }); Note: The syntax (8..20).do uses an optimization to avoid g ...
-
... ir(envir, pattern, independent): The Streams that evaluate patterns are usually Routines, and Routines have the special feature of remembering the Environment that was in force the last time it yielded, and restoring the same environment th ...
-
... g val; {val.plot;}.defer}); //Continuous graphical display of MFCC values; free routine before closing window ( var ms; w= Window .new( "Thirteen MFCC coefficients" , Rect (200,400,300,300)); ms= Mu ltiSliderView.new(w, Rect (10,10,260,280) ...