-
... nverted to midinote, not just frequency \degree , Pwhite (-7, 12, inf ), \dur , Pwrand ([0.25, Pn (0.125, 2)], #[0.8, 0.2], inf ), \legato , sin( Ptime ( inf ) * 0.5).linexp(-1, 1, 1/3, 3), \amp , Pexprand (0.5, 1.0, inf ) ).play(quant: 1); ...
-
... / integers, 0-19 // steps up to 2 in either direction, weighted toward positive Pwrand ([-2, -1, 0, 1, 2], [0.05, 0.1, 0.15, 1, 0.1].normalizeSum, inf ), // reverse direction at boundaries Pseq ([1, -1], inf ), 10); // start in the middle x ...
-
... p = PmonoArtic ( \sawpulse , \dur , 0.2, \freq , Pwhite (1,8) * 100, \legato , Pwrand (#[0.5, 1.0], #[0.1, 0.9], inf ) ).play; p.stop;
-
... dom order, and use the same random order 'repeats' times. Like list.scramble. * Pwrand(list, weights, repeats): Choose randomly by weighted probabilities (like list.wchoose(weights)). * Pseries(start, step, length): Arithmetic series (addit ...
-
... rownian motion Plprand Phprand Pmeanrand Pbeta Pcauchy Pgauss Ppoisson Pexprand Pwrand ([ 1, 2, 3 ], [0.1, 0.3, 0.6], 20); // choose from a list, probabilities by weights Pshuf ([ 1, 2, 3, 4 ], 2); // scramble the list, then repeat that ord ...
-
... th no repeats ( Pxrand ), or random order according to a set of probabilities ( Pwrand ). Pshuf creates one random ordering and uses it repeatedly. Direct array indexing: Patterns can be chosen in arbitrary order by index. This gives you mo ...
-
... ) + Prand (#[[0, -2, -4], [0, -3, -5], [0, -2, -5], [0, -1, -4]], inf ), \dur , Pwrand (#[1, 0.5], #[0.8, 0.2], inf ) ).play; ) p.stop; Using custom SynthDefs (including unpitched SynthDefs) Patterns have special features to support several ...
-
... pNote ] }).isNil) { ev[ \merge ] ++ ev[ \topNote ] } { ev[ \merge ] } }, \dur , Pwrand ([ Pseq ([0.5, Pwhite (1, 3, 1), 0.5], 1), 1, 2, 3], #[1, 3, 2, 2].normalizeSum, inf ), \amp , 0.05 ).play(quant: 1); ) ~bass.stop; ~chords.stop; The cho ...
-
... ) - random selection from list without repeats Pxrand ([p, q, r], inf ).play // Pwrand( patternList, weights, repeats ) - weighted random selection from list Pwrand ([p, q, r], #[1, 3, 5].normalizeSum, inf ).play // Pwalk( patternList, step ...
-
... repeats) -- choose randomly, but never return the same list item twice in a row Pwrand(list, weights, repeats) -- like Prand, but chooses values according to a list of probabilities/weights Other patterns generate values according to variou ...