Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (225) Code (25) Doc (78) Help (44) Quark (78) SCDoc ↗ Forum ↗ Google ↗
  1. Pbinop Help

    ... o: Pnaryop , Punop , BinaryOpFunction // example ( var a; a = Pbinop ( \hypot , Pseries (0, 1, 12), Pseries (3, -1, 12)); a.asStream.all; ) // this is the same as: ( var a; a = Pseries (0, 1, 12).hypot( Pseries (3, -1, 12)); a.asStream.all; ...

  2. Pseries Help

    Pseries artithmetic series pattern superclass: Pattern Pseries(start, step, length) Returns a stream that behaves like an arithmetric series. start - start value (default: 0) step - addition factor. (default: 1) length - number of values pr ...

  3. Punop Help

    ... lso: Pnaryop , Pbinop , UnaryOpFunction // example ( var a; a = Punop ( \sqrt , Pseries (0, 1, 12)); a.asStream.all; ) // this is the same as: ( var a; a = Pseries (0, 1, 12).sqrt; a.asStream.all; ) // some common cases: Pseq ([1, 2, 3]).sq ...

  4. Pnaryop Help

    ... also: Pbinop , Punop , NAryOpFunction // example ( var a; a = Pnaryop ( \wrap , Pseries (0, 1, 12), [3, 7]); a.asStream.all; ) // this is the same as: ( var a; a = Pseries (0, 1, 12).wrap(3, 7); a.asStream.all; ) // the scale argument can a ...

  5. Pspawn Help

    ... aced in the event // So, it can be spawned \pattern , Pfunc { Pbind ( \degree , Pseries (rrand(0, 10), #[-1, 1].choose, rrand(4, 10)), \dur , 0.125) }, \delta , Pwhite (1, 5, inf ) * 0.125, \method , \par )).play; ) p.stop; // Same, using a ...

  6. Streams-Patterns-Events2 Help

    ... m first stream 4.do({ c.next.postln; }); // print 4 values from second stream ) Pseries is a Pattern that generates an arithmetic series. ( var a, b; a = Pseries .new(10, 3, 8); // stream starts at 10, steps by 3 and has length 8 b = a.asSt ...

  7. Pif Help

    ... nOsc .ar(freq, 0, env)) }).add; ) ( var a; a = Pif ( Pfunc ({ 0.3.coin }), Pn ( Pseries (0.5, 0.1, 10)), Pn ( Pseries (6, -0.1, 10))).asStream; { loop { Synth ( \help_sinegrain , [ \freq , a.next * 600 + 300]); 0.2.wait; } }.fork; )

  8. PG_Cookbook02_Manipulating_Patterns Help

    ... ames, picking one value from whichever stream is chosen this cycle. This use of Pseries is essentially a random walk among scale degrees. It has more linear continuity than the equal distribution generated by Pwhite. Even though the higher ...

  9. PG_Cookbook01_Basic_Sequencing Help

    ... t of chord intervals to a melody that's always on top. It's a compound pattern, Pseries(...) + Prand(...), where Pseries returns a single number and Prand returns an array. As with regular math operations, a number plus an array is an array ...

  10. PG_02_Basic_Vocabulary Help

    ... ats): Choose randomly by weighted probabilities (like list.wchoose(weights)). * Pseries(start, step, length): Arithmetic series (addition). * Pgeom(start, grow, length): Geometric series (multiplication). * Pwhite(lo, hi, length): Random nu ...

1 2 3 4 5 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow