-
... dup , PSrecur , PSloop Example ( p = Pseq ([ PS ( Pseq ((1..9), inf), 3), PS (( Pseries () + 1) * 100, Pseq ([1,2,3], inf)) ], inf); q = p.asStream; q.nextN(50); ) // ATTENTION: // It is important to remember that, differing from normal // ...
-
... 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 ...
-
... samp, Pexprand(0.07,0.5,inf), \rate, Pexprand(0.1,3,inf), \cfreq, Pseq([ Pseries(120,30,76), Pseries(2400,-30,76), ],inf), \rq, Pkey(\samp)+Pwhite(0.1,0.15,inf).asStream, \atk, Pexprand(0.04,0.3,inf), \decay, Pexprand(6,15 ...
-
... 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 ...
-
... \rest, Pn(0.3, 3), 0.4, 0.5, \rest, 0.3, \rest, 0.3, 0.5 ], inf), \filterFreq, Pseries(4500, -75) );
-
... iver.clump(clumpSize).collect({ |x| func.(x, args) }).flatten(1) }) }; ) a = g.(Pseries.new, clumpSize: 4); a.mirror.asStream.nextN(16) // the n of clump(n) is the first argument a.mirror(4).asStream.nextN(16) a.mirror(2).asStream.nextN(16) ...
-
... randomly, according to weighted probabilities (same as list.wchoose(weights) ). Pseries(start, step, length) Arithmetic series (addition). Pgeom(start, grow, length) Geometric series (multiplication). Pwhite(lo, hi, length) Random numbers, ...
-
... , PSdup , PSrecur , PSloop Examples ( p = Pseq([ PS(Pseq((1..9), inf), 3), PS((Pseries() + 1) * 100, Pseq([1,2,3], inf)) ], inf); q = p.asStream; q.nextN(50); ) // ATTENTION: // It is important to remember that, differing from normal // Pa ...
-
... he Routine to do, so that stream is over; it can only yield nil thereafter. p = Pseries (0, 1, 3).asStream; // this will yield exactly 3 values 4.do { p.next.postln }; // 4th value is nil We saw that list patterns can contain other patterns ...
-
... e - the higher the note, the shorter the length ( p = Pbind ( \degree , Pseq ([ Pseries (-7, 1, 14), Pseries (7, -1, 14)], inf ), \dur , 0.25, // \degree is EARLIER in the Pbind \legato , Pkey ( \degree ).linexp(-7, 7, 2.0, 0.05) ).play; ) ...