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