-
Pif Pattern-based conditional expression. superclass: Pattern Pif(condition, iftrue, iffalse, default) condition : A pattern or stream returning a Boolean value. iftrue : This stream is evaluated if the Boolean is true. iffalse : This strea ...
-
... pattern is to stop a value stream/pattern after a certain amount of time. This Pif pattern uses Ptime to get values from the true branch for exactly 4 beats after the first value is requested. After that, the condition will be false and Pi ...
-
... trol methods Some patterns mimic language-style control methods: conditionals ( Pif ), loops ( Pwhile ) and error cleanup ( Pprotect ). Pif(condition, iftrue, iffalse, default): Evaluates a pattern 'condition' that returns true or false. Th ...
-
... k , \preamp , 0.4, \dur , 0.25, *(~pbindPairs.value(#[amp, decay2])) ), \freq , Pif ( Pkey ( \amp ) > 0, 1, \rest ) ) }), inf )).play(quant: 4); Penvir(~kikEnvir, ...) : Tell the enclosed pattern to run inside the kick drum's environment. P ...
-
... ntrol methods Some patterns mimic language-style control methods: conditionals (Pif), loops (Pwhile) and error cleanup (Pprotect). Pif(condition, iftrue, iffalse, default): Evaluates a pattern 'condition' that returns true or false. Then, o ...
-
... g the name to look up the pattern for each event. Related: Conditional patterns Pif supports this kind of structure: If the next value from a Boolean pattern is true, return the next item from pattern A, otherwise take it from pattern B. An ...
-
... ten this way (see PG_06e_Language_Control for an explanation of the conditional Pif ): ( // first, pitches ascending by 1-3 semitones, until 2 octaves are reached var pitches = Pseries (0, Pconst (24, Pwhite (1, 3, inf )), inf ).asStream.al ...