Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (317) Code (69) Doc (87) Help (34) Quark (127) SCDoc ↗ Forum ↗ Google ↗
  1. Pfunc Help

    Pfunc function pattern superclass: Pattern Pfunc(nextFunc, resetFunc) Returns a stream that returns values from the nextFunc. nextFunc - stream function resetFunc - function that is called when the stream is reset. See also: Pfuncn // examp ...

  2. Penvir Help

    ... nvir an environment with objects to embed pattern pattern or stream, ususally a Pfunc, Prout. independent if true (default) streams can write to the environment without influencing other streams created from this pattern. if false, the stre ...

  3. Pbind Help

    ... 3, 4, 8], inf ), \dur , 0.5, \octave , [2, 1], \instrument , \berlinb , \pan , Pfunc ({1.0.rand2}) ).asStream; ) Additional arguments Here is an example with more bindings. Here we have added a filter with cutoff and resonance arguments. Y ...

  4. Pfuncn Help

    Pfuncn function pattern of given length superclass: Pattern Pfunc(func, repeats) Returns a stream that returns values from the func. func - stream function repeats - end after this number of times See also: Pfunc // example ( var a, b, c; a ...

  5. Pif Help

    ... stream) is returned if "iftrue" or "iffalse" return nil at any time. p = Pif ( Pfunc ({ 0.3.coin }), Pwhite (0, 9, inf ), Pwhite (100, 109, inf )).asStream; p.nextN(20); // 7 of the 20 values, or roughly 30%, are in the 0-9 range: [ 105, 1 ...

  6. Pspawn Help

    ... a Ref: Pseq ([` Pwhite (0, 9, 5), ` Pwhite (10, 19, 5)], 1).asStream.all; Hint: Pfunc is another good way to wrap patterns, because it simply returns its result values without further embedding. See the first example. Examples: // Play over ...

  7. Pproto Help

    ... vent stream superclass: Pattern *new(makeFunction, patternOrPatternArray, cleanupFunction) Pproto uses the makeFunction to allocate resources (buffers, buses, groups) and create a protoEvent that makes those resources available to a pattern ...

  8. Pchain Help

    ... 4)), Pbind ( \mtranspose , Pn (2, 7)) ], inf ); c = Prand ([ Pbind ( \detune , Pfuncn ( { [0, 10.0].rand }, 5), \legato , 0.2, \dur , 0.2), Pbind ( \legato , Pseq ([0.2, 0.5, 1.5], 2), \dur , 0.3) ], inf ); Pchain (a, b, c).trace.play; ) p ...

  9. PG_06d_Parallel_Patterns Help

    ... \method , \par , // embed patterns in parallel // generate the subpattern in a Pfunc (so there's a new pattern each time) // Pfunc returns the pattern without rendering the stream // -- important for Pspawn // See the Pspawn helpfile for o ...

  10. NodeProxy_roles Help

    ... um * 0.2 }; ( a[0] = \setbus -> Pbind ( \dur , Prand ([1, 0.5], inf ), \value , Pfunc { var z = rrand(300, 4000); [300, 400, z, z + 30.rand2] } ) ); // modify the other source in the meanwhile: b[0] = { Pulse .ar(a.ar(4)).sum * 0.2 }; a.cle ...

1 2 3 4 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow