-
Pswitch embed values in a list according to a pattern of indices Pswitch(list, which) Pswitch chooses elements from the list by a stream of indices ( which ) and embeds them in the stream. If the element is itself a pattern, it first comple ...
-
Pfin limit number of events embedded in a stream superclass: FilterPattern Pfin(count, pattern) embeds count elements of the pattern into the stream Note: Pfin is intended for event patterns. After the count elements are embedded, the strea ...
-
RandID set the synth's random generator id RandID.kr(seed) RandID.ir(seed) Choose which random number generator to use for this synth. All synths that use the same generator reproduce the same sequence of numbers when the same seed is set a ...
-
Pslide slide over a list of values and embed them superclass: ListPatterns Pslide(list, repeats, length, step, start, wrapAtEnd) repeats : number of segments length : length of each segment step : how far to step the start of each segment f ...
-
Pswitch1 embed values in a list according to a pattern of indices Pswitch1(list, which) Pswitch1 chooses elements from the list by a stream of indices ( which ) and embeds them in the stream. If the element is itself a pattern, it embeds on ...
-
Pconst constrain the sum of a value pattern superclass: FilterPattern Pconst(sum, pattern, tolerance) similar to Pfindur , but works with the value directly. embeds elements of the pattern into the stream until the sum comes close enough to ...
-
... Pseq .new([5, 6], 2) ], 3); b = a.asStream; 13.do({ b.next.postln; }); ) Nested sequences of pitches: ( var a; a = Prand ([ Pseq (#[60, 61, 63, 65, 67, 63]), Prand (#[72, 73, 75, 77, 79], 6), Pshuf (#[48, 53, 55, 58], 2) ], inf ).midicps.as ...
-
... .25 ).play; p.stop; // more complex example, showing 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 replac ...
-
Plazy instantiate new patterns from a function superclass: Pattern Plazy evaluates a function that returns a pattern and embeds it in a stream. Plazy(func) func: A function that returns a pattern or any other valid pattern input see also: P ...
-
Ptuple combine a list of streams to a stream of lists superclass: ListPatterns Ptuple(list, repeats) list: an Array of Patterns repeats: an Integer or inf At each iteration, Ptuple returns a tuple (array) combining the output of each of the ...