-
Pxrand embed values randomly chosen from a list like Prand , returns one item from the list at random for each repeat, but Pxrand never repeats the same element twice in a row. see also: Pwrand ( var a, b; a = Pxrand .new(#[1, 2, 3], 10); / ...
-
... .2]); 0.17.wait; }) }).play; ) // a more complicated example: ( c = Ppatlace ([ Pxrand ([ Pseq (#[0, -2, -3, -5, -7], 1), Pwhite (-12, 4, 3), Pshuf (#[0, -2, -3, -5, -7], 1) ], inf ), Pxrand ([ Pseq (#[0, 2, 4, 5, 7], 1), Pwhite (-4, 12, 3) ...
-
... 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 Preject PdurStutter Pcons ...
-
... : ListPattern Embed one item from the list at random for each repeat. see also: Pxrand , Pwrand ( var a, b; a = Prand ([1, 2, 3, 4, 5], 6); // return 6 items b = a.asStream; 7.do({ b.next.postln; }); ) // return also a subpattern: ( var a, ...
-
... ent , \cfstring1 , \ctranspose , 0 ).asStream; ) ( e.stream = Pbind ( \degree , Pxrand ([0, 1, 2, 4, 6, 3, 5, 7, 8], inf ), \dur , Prand ([0.2, 0.4, 0.8], inf ), \amp , 0.05, \octave , 5, \instrument , \cfstring1 ).asStream; ) Additional ex ...
-
... [ Pswitch1 ] ListPattern [ 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 Ps ...
-
... se of a larger number of phrase patterns. The structure is very simple, though: Pxrand([Pbind(), Pmono(), Pmono()...], inf) . Some of the phrases are written with Pmono to slide between notes. ( SynthDef ( \bass , { |freq = 440, gate = 1, a ...
-
... .do({ Synth ( \help_SPE3_SimpleSine ,[ \freq , a.next]); d.wait; }); }).play; ) Pxrand, like Prand, returns one item from the list at random for each repeat, but Pxrand never repeats the same element twice in a row. ( var a, b; a = Pxrand . ...
-
... nto random order Prand(list, repeats) -- choose from the list's values randomly Pxrand(list, repeats) -- choose randomly, but never return the same list item twice in a row Pwrand(list, weights, repeats) -- like Prand, but chooses values ac ...
-
... nd(list, repeats): Choose items from the list randomly (same as list.choose). * Pxrand(list, repeats): Choose randomly, but never repeat the same item twice. * Pshuf(list, repeats): Shuffle the list in random order, and use the same random ...