-
... 0483089, 1.2599210498937, 1.3348398541685, etc. ] Pbind ( \scale , a, \degree , Pseq ((0..7) ++ (6..0) ++ [ \rest ], 1), \dur , 0.25).play; // use non-standard tuning a.tuning_( \just ); a.degrees; // no change; degrees are independent of t ...
-
... ms-Patterns-Events7 ] - Practical Considerations Specific classes: ListPatterns Pseq Pser Prand Pwrand Pxrand Pshuf Place Ptuple Pslide Pfsm Place ... FilterPatterns Pseed Prewrite Pswitch Pswitch1 Pn Pstutter Pfin Psync Pcollect Pselect Pr ...
-
Pser sequentially embed values in a list superclass: ListPattern is like Pseq , however the repeats variable gives the number of items returned instead of the number of complete cycles. ( var a, b; a = Pser ([1, 2, 3], 5); // return 5 items ...
-
... rn, so the number of times can vary each iteration ( var a, b; a = Pstutter (2, Pseq([1, 2, 3],inf)); x = a.asStream; 13.do({ x.next.postln; }); ) Pstutter used as a sequence of pitches ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, ...
-
... back to the list pattern to get the next item, which is embedded and so on. p = Pseq ([ Pseries (0, 1, 3), Pgeom (10, 2, 3)], 1).asStream; p.next; // Pseq is embedded; first item is Pseries(0...), also embedded // Control is now in the Pser ...
-
... rn. This can be used to advance Patterns enclosed by Pgate ( var a, b; a = Pn ( Pseq (#[1, 2, 3], 1), 4); // repeat pattern four times b = a.asStream; 16.do({ b.next.postln; }); ) // sound example ( SynthDef ( \help_sinegrain , { arg out=0, ...
-
... ({ b.next.postln; }); ) // return also a subpattern: ( var a, b; a = Prand ([1, Pseq ([10, 20, 30]), 2, 3, 4, 5], 6); // return 6 items b = a.asStream; 7.do({ b.next.postln; }); ) Prand used as a sequence of pitches: ( SynthDef ( \help_sine ...
-
... asStream; 10.do({ c.next.post }); // using a seed pattern as input: a = Pseed ( Pseq ([1812, 1912], inf ), Prand ([1,2,3], 5 )); b = a.asStream; 2.do({ 5.do({ b.next.post }); "" .postln; }); c = a.asStream; 2.do({ 5.do({ c.next.post }); "" ...
-
... ttern [ Pwalk Pslide Ptuple Ppar [ Ptpar ] Pdfsm Pfsm Pwrand Pxrand Prand Pshuf Pseq [ Ppatlace Place Pser ] ] Pindex Ppatmod Plazy Pstatbalnorm Pstatbal PstepNfunc [ PstepNadd ] Pstep3add Pstep2add Pwhite Pbrown Pgeom Pseries Pbind Pevent ...
-
... multichannel expansion and sequences of slots: p = Pbind( \degree, ( PhidSlot( Pseq([[0,1],2,5],inf), 3, a, inf )*12 ).round(1), \dur, 0.25 ).play; // the type argument can also be replaced by an Array or pattern. p.stop; // clean up: clos ...