-
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 ...
-
... complish it. In SuperCollider, patterns are best for tasks that need to produce sequences, or streams, of information. Often these are numbers, but they don't have to be -- patterns can generate any kind of object. For a simple example, let ...
-
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 ...
-
Select select one output from many sources superclass: UGen The output is selected from an array of inputs. Select.ar(which, array) Select.kr(which, array) // examples ( { var a, cycle; a = [ SinOsc .ar, Saw .ar, Pulse .ar ]; cycle = a.size ...
-
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 ...