-
Pfindur limit total duration of events embedded in a stream superclass: FilterPattern Pfindur(dur, pattern, tolerance) embeds elements of the pattern into the stream until the duration comes close enough to dur . ( var a, b; a = Pfindur (5, ...
-
Pwrand embed values randomly chosen from a list superclass: ListPattern returns one item from the list at random for each repeat, the probability for each item is determined by a list of weights which should sum to 1.0. ( var a, b; a = Pwra ...
-
A Practical Guide to Patterns H. James Harkins Introduction Patterns are one of the most powerful elements of the SuperCollider language, but in some ways they can be difficult to approach using only the class-oriented help files. These doc ...
-
Pfinval limit number of items embedded in a stream superclass: Pfin Pfinval(count, pattern) embeds count elements of the pattern into the stream Note: Pfinval is not appropriate for wrapping Pmono, Pfx etc. For these types of event patterns ...
-
Prand embed values randomly chosen from a list superclass: 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. ...
-
Dshuf demand rate random sequence generator superclass: ListDUGen *new(array, length) array array of values or other ugens length number of repeats structurally related: Pshuf see also: Demand // example ( { var a, freq, trig; a = Dseq ([ D ...
-
... may not be the most efficient way if each input is cpu-expensive. // used as a sequencer ( { var a, cycle; a = Array .fill(32, { rrand(30,80) }).midicps; a.postln; cycle = a.size * 0.5; Saw .ar( Select .kr( LFSaw .kr(1.0, 0.0, cycle, cycle ...
-
Place interlaced embedding of subarrays superclass: ListPattern Place(list, repeats) returns elements in the list : if an element is an array itself, it embeds the first element when it comes by first time, the second element when it comes ...
-
Ppatmod modify a given pattern before passing it into the stream superclass: Pattern Ppatmod(pattern, func, repeats) func - A function that modifies the enclosed pattern and embeds it in the stream. see also Plazy ( a = Ppatmod ( Pseq ([0, ...
-
Prewrite rewriting system superclass: FilterPattern Lindenmayer system pattern for selfsimilar structures. Its dictionary (or event) maps one element to an array of child elements. The algorithm replaces iteratively ( levels deep) elements ...