Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (102) Code (23) Doc (29) Help (13) Quark (37) SCDoc ↗ Forum ↗ Google ↗
  1. PnNilSafe Quark

    PnNilSafe : Pn It is possible to hang SuperCollider by using Pn and Plazy together, under the following conditions: The number of repeats for Pn is inf. Plazy infinitely returns nil for any reason. For instance, // do not execute this! Unle ...

  2. PnNilSafe Quark

    PnNilSafe : Pn It is possible to hang SuperCollider by using Pn and Plazy together, under the following conditions: The number of repeats for Pn is inf. Plazy infinitely returns nil for any reason. For instance, // do not execute this! Unle ...

  3. PLx suite Quark

    ... s, but also Patterns itself. So Patterns including functional code (e.g. Pfunc, Plazy, Pcollect) can, thanks to dynamic scoping, turn into different Streams, depending on the environment where streamifying happens ( Event patterns and Funct ...

  4. Event patterns and Functions Quark

    ... ttern engaging Functions, thus allowing to benefit from environment-dependance: Plazy. it evaluates a Function that returns a Pattern to be embedded in a stream. For repeated embedding the Plazy can be wrapped into a Pn. If a generated Patt ...

  5. ContextSnake_Palestrina Quark

    ... Examples of use: // play all palestrina melodies in random order ( Pdefn(\mel, Plazy({ Pseq(c.pAll.choose) })); Pdef(\pale, Pbind( \amp, 0.2, \octave, 4, [\note, \dur], Pn(Pseq([ [\a, 0], Pdefn(\mel), [\o, 4]], inf)).trace, \tempo, 2 )).pl ...

  6. PIdev Quark

    ... ev = 1; ~lookBack = 2; p = Pbind ( \dur , 1/7, \midinote , PIdev ( 78, 10, Pn ( Plazy { ~loDev }), Pn ( Plazy { ~hiDev }).trace(prefix: "absolute deviation " ), Pn ( Plazy { ~lookBack }) ).trace(prefix: "midi " ); ).play ) // start paramete ...

  7. Pdelta Quark

    ... nts // the time point pattern puts 4 notes in random places in the bar p = Pn ( Plazy ({ Pseq (({ 4.0.rand } ! 4).round(0.125).sort, 1) }), inf ); // trace lets us see the time points first q = Pdelta (p.trace).asStream; q.nextN(6); 0.25 1. ...

  8. Pdelta Quark

    ... nts // the time point pattern puts 4 notes in random places in the bar p = Pn ( Plazy ({ Pseq (({ 4.0.rand } ! 4).round(0.125).sort, 1) }), inf ); // trace lets us see the time points first q = Pdelta (p.trace).asStream; q.nextN(6); 0.25 1. ...

  9. sclang-dirt Quark

    ... umps = names.asArray.scramble.curdle(0.1); Pdef(\x, Pbind( \type, \dirt, \s, Pn(Plazy { var n = clumps.choose; postln(join(n, " ") ++ "\n"); Pfuncn({ n.choose }, 2 ** rrand(6, 9)) }), \cut, Prand([1, 2, 3], inf), \n, Pwhite(0, 20, inf), \sp ...

  10. PR Quark

    ... al.read; // other initialization may take place here too Pbind ( \degree , Pn ( Plazy ({ Pseq ((0..7).scramble, 1) }), inf ), \delta , 0.125, \sustain , 0.16, \instrument , \default ); }; }) => PR ( \simplePbind ); Event .default => PR ( \s ...

1 2 3 4 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow