-
... = s.nextNodeID, 0, 1); s.sendMsg( \n_trace , x); // poll the shared control bus Routine ({ 30.do({ s.getSharedControl(0).postln; 0.2.wait; }); }).play; ) s.quit;
-
... 0.05) }); // knows it was in control EZSlider (w, 340@30, \knowsLast , \freq , Routine { |sl| var newVal, lastVal; loop { newVal = sl.value; Ndef ( \test ).softSet( \freq , newVal, 0.05, lastVal: lastVal); lastVal = newVal; \dummy .yield; ...
-
... 4, 0]+64); c = Pswitch ([a, b, 75], Pseq ([2, 2, 0, 1], inf )); x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps]); 0.18.wait; }) }).play; )
-
... ({ rrand(3, 5)}, Pseq ([1, 2, 3, 4, 5, 6], inf )*4+65), inf ); b = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , b.next.midicps]); 0.12.wait; }) }).play; )
-
... add; ) ( c = Pslide (#[1, 2, 3, 4, 5], inf , 3, 1, 0) * 3 + 67; x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps]); 0.17.wait; }) }).play; )
-
... stln; }); // print 5 values from the stream ) Prout is a Pattern that returns a Routine. The same function argument is supplied as is supplied to Routine. ( var a, b, c; a = Prout .new({ 3.do({ arg i; 3.rand.yield; }) }); // make two stream ...
-
... 4, inf ); c = Pswitch1 ([a, b, 75], Pseq ([2, 2, 0, 1], inf )); x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps]); 0.18.wait; }) }).play; )
-
... 5, 2 ] ] the list comprehension above is equivalent to the following code: all( Routine .new({ (1..5).do { |x| (1..x).do { |y| if ((x+y).isPrime) {[x,y].yield} }}})); ..but much more concise and much easier to keep in your head than writing ...
-
... .softVol_(sl.value, 0.05) }); // safer EZSlider (w, 340@30, \knowLastV , \amp , Routine { |sl| var newVal, lastVal; loop { newVal = sl.value; Ndef ( \test ).softVol_(sl.value, 0.05, lastVal: lastVal); lastVal = newVal; \dummy .yield; } }); ...
-
... .signal; // allow others access again }; // e.g. set the values to integers u = Routine { inf .do { |i| useAndModify.value([100, 200, 300], "thread 1>" ); rrand(1, 3).wait; } }; // e.g. set the values to floats k = Routine { 0.5.wait; inf . ...