Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (572) Code (144) Doc (154) Help (54) Quark (220) SCDoc ↗ Forum ↗ Google ↗
  1. Pbinop Help

    ... ommon cases: Pseq ([1, 2, 3]) + 2; Pseq ([1, 2, 3]) / Pseq ([3, 4, 5, 6]); max( Pwhite (-10, 10, inf ), Pseq ([0, 2, 3, 4])); // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05, amp=0.1; var env; env = EnvGe ...

  2. Pnaryop Help

    ... eq ([3, 4, 5], inf ), Pseq ([9, 7], inf )]); a.asStream.all; ) // common cases: Pwhite (0, 1, inf ).linexp(0, 1, 200, 1000); Pwhite (0, 1, inf ).degreeToKey([0, 1, 3, 5, 7, 9, 11], 10); blend( Pseq ([1, 2, 3], inf ), Pseq ([3, 2, 1, 0], inf ...

  3. Tracing Processes Help

    ... ues, // the message trace can be used (in returns a Ptrace) a = Pseq ([1, 4, 1, Pwhite (0, 6, 3), 100, 39], inf ).trace(prefix: "value: " ); b = a.asStream; b.next; b.next; b.next; b.next; // in a running stream: ( Pbind ( \degree , Pseq ([ ...

  4. Pif Help

    ... f "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, 107, 107, 8, 100, 3, 10 ...

  5. PG_06e_Language_Control Help

    ... eturns control to the parent upon nil from either branch. p = Pbind ( \degree , Pwhite (0, 11, inf ), // odd numbered scale degrees get a shorter rhythmic value \dur , Pif ( Pkey ( \degree ).odd, 0.25, 0.5) ).play; p.stop; Pseed(randSeed, p ...

  6. Pgpar Help

    ... \legato , 0.2), Pbind ( \instrument , \echo , \dur , 3, \legato , 1.1, \dtime , Pwhite (0.01, 0.1, inf ), \decay , 3), Pbind ( \instrument , \distort , \dur , 1.2, \legato , 1.1, \pregain , Pwhite (1, 20, inf ), \amp , 0.25), Pbind ( \instr ...

  7. PatternConductor Help

    ... he specified tempo. example: ( // a pattern with long notes p = Pbind ( \freq , Pwhite (0,log(32)).exp.round(1) * 36.midicps, \detune , Pfunc ({ | ev | ev[ \freq ] * rand(0.01) }), \sustain , Pwhite (log(0.1), log(20)).exp, \dur , Prand ([0 ...

  8. PG_06g_Data_Sharing Help

    ... , // access resources in the protoevent by Pkey \bufnum , Pkey ( \buf ), \dur , Pwhite (1, 4, inf ) * 0.25, // upper bound of Pwhite is based on duration // so that start + (dur * samplerate) never goes past the buffer's end \start , Pwhite ...

  9. PG_Cookbook03_External_Control Help

    ... , 127, 0.1, 2.5) }, num: 1); // num: 1 means modwheel ) ( p = Pbind ( \degree , Pwhite (-7, 12, inf ), \dur , Pwrand ([0.25, Pn (0.125, 2)], #[0.8, 0.2], inf ), \legato , Pfunc { ~legato } // retrieves value set by MIDI control ).play; ) p. ...

  10. Pkey Help

    ... m. // \b should thus take twice the value of \a in each event: p = Pbind ( \a , Pwhite (1, 10, inf ), \b , Pkey ( \a ) * 2).asStream; p.next(()) // for Pbind, must pass in a default event even if empty ( 'a' : 10, 'b' : 20 ) ( 'a' : 2, 'b' ...

prev 1 2 3 4 5 6 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow