-
Understanding Streams, Patterns and Events - Part 3 ListPatterns ListPatterns are Patterns that iterate over arrays of objects in some fashion. All ListPatterns have in common the instance variables list and repeats. The list variable is so ...
-
PstepNadd pattern that returns combinatoric sums superclass: PstepNfunc combines an arbitrary number of patterns by summing (depth first traversal). when a stream ends it is recreated from its pattern until the top stream ends. see also: Ps ...
-
Pmono monophonic event stream Superclass: Pattern Pmono(synthDefName, patternPairs) Plays one instance of a Synth . The pattern pairs define changes in that one synth's controls. This node is created when entering a Pmono, and released when ...
-
... rclass: Object Represents the standard scheduling model for Routines, Tasks and Patterns. A Quant object stores the parameters needed to calculate the precise time when a Routine/Task/Pattern will start playing on a specified TempoClock. Th ...
-
EventPatternProxy event stream reference superclass: TaskProxy keeps a reference to a stream that can be replaced while playing. Multiple streams are thus handled without creating dependancies. related: Pdef *new(source) create a new instan ...
-
... otect evaluate a function when an error occured in the thread superclass: FilterPattern Pprotect(pattern func) pattern any pattern func the function to be evaluated when an error occurs. The error and the thread are passed as arguments to t ...
-
Punop unary operator pattern superclass: Pattern Punop(operator, a) Returns a stream that applies the unary operator to the stream values of the receiver . Usually, this is the result of applying a unary operator (i.e. a method with one arg ...
-
Pcollect apply a function to a pattern superclass: FuncFilterPattern Pcollect(func, pattern) modifies each value by passing it to the function ( var a, b; a = Pcollect ({ arg item; item * 3 }, Pseq(#[1, 2, 3],inf)); x = a.asStream; 9.do({ x ...
-
Pselect select values from a pattern superclass: FuncFilterPattern Pselect(func, pattern) returns values for which the function returns true. the value is passed to the function see also: Pcollect , Preject ( var a, b; a = Pselect ({ arg it ...
-
Preject reject values from a pattern superclass: FuncFilterPattern Preject(func, pattern) rejects values for which the function returns true. the value is passed to the function see also: Pcollect , Pselect ( var a, b; a = Preject ({ arg it ...