Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (49) Code (8) Doc (13) Help (7) Quark (21) SCDoc ↗ Forum ↗ Google ↗
  1. Pif Help

    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 ...

  2. PG_06b_Time_Based_Patterns Help

    ... 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 ...

  3. PG_06e_Language_Control Help

    ... 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 ...

  4. PG_Cookbook07_Rhythmic_Variations Help

    ... 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 ...

  5. PG_060_Filter_Patterns Help

    ... 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 ...

  6. PG_04_Words_to_Phrases Help

    ... 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 ...

  7. PG_03_What_Is_Pbind Help

    ... 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 ...

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow