-
... n argument, create a new pattern each time it is called Pdef(\x, { Pbind(\note, Pseries(10.rand, 5.rand, 8.rand + 1), \dur, 1 / (8.rand + 1)) }); Pn(Pdef(\x)).play; // the function is called in the incoming event as current environment, so ...
-
... rns arrays, use Ptuple: a = [Pseq([1, 2, 3], inf), Prand([100, 299, 399], inf), Pseries(0, 6, inf)]; b = Ptuple(a); b.asStream.nextN(8) ⧉ ✔ Pbind(\degree, Ptuple([Pseq([0, 2, 3], inf), Pseq([2, 4, 5, 6], inf)])).play; ⧉ ✔ // an example: ins ...
-
... n, the parenthesis must each be the only character on a line. ( Pbind( \degree, Pseries(0, 1, 8), \dur, 0.25 ).play; ) ⧉ ✔ If the cursor is anywhere between the outermost parentheses, pressing Ctrl+Return will automatically evaluate the ent ...
-
... white(2, 5), Pwhite(1, 2)), PLseq([1, -2])); ~fxOrder = [1]; ~rate = Pn(Plazy { Pseries(exprand(0.3, 0.7), rrand(0.02, 0.1), rrand(5, 20)); }) * 0.8; v.performWithEnvir(\gui, w) ) // after stopping free leakDC synth x.free ⧉ ✔ Part 6 – band ...
-
... }, 1]) } // weights contains streams 10.collect { [1, 2, 3, 4].wchoosen([1, 1, Pseries(0,1).asStream, 1]) }; // weights is a function 10.collect { [1, 2, 3, 4].wchoosen({ |list| list.collect { |x| if(x.even) { 1 } { 2 } } }) }; // weights ...
-
... aping = \elastic; Ndef(\y).reshaping = \elastic; Ndef(\x, Pbind(\channelOffset, Pseries(0, 1, inf), \dur, 0.25, \legato, 0.1)); Ndef(\y, { Ndef.ar(\x).collect { |x| x * SinOsc.ar(exprand(3.0, 3000)) * LFPulse.kr(rrand(10, 50)) } }).play(0, ...
-
... !5, rrand(0,25)); // phase shift gui ( p = Pbind( \dur, 0.07, \type, \rest, \i, Pseries(), \do, Pfunc { |e| v.updateSynthSliders(\midi, 0, (e.i / 5).sin * 25 + 70, e.i % 30) } ).play(AppClock) ) // stop updating p.stop; ⧉ ✔ Ex. 6c: non stan ...
-
... ine pattern Pspawner - dynamic control of multiple event streams from a Routine Pseries - arithmetic series pattern Pstandard - (Undocumented class) Pstep - timed, sample-and-hold embedding of values Pseg - timed embedding of values Pstep2a ...