-
... )); Pdefn(\orig, Plazy({ "\norig.".postln; Pseq(c.pAll.choose) })); Pdefn(\mel, Prand([Pdefn(\snake), Pdefn(\orig)])); )
-
... [1, 2, 3]); ~b = Pseq([5, ~a, ~a + 10], inf); ~b.value.asStream.nextN(10); ~a = Prand([100, 200]); ~b.value.asStream.nextN(10); // keyword arguments ~a = { |x=0, y=0| x + y }; ~a.(2, 3); ~a.(y:3); ~k = 1997; ~a.(x:2, y:~k); // to do : flop! ...
-
... 1-5, with the sign (positive or negative) randomly chosen (Pwhite(1, 5, inf) * Prand(#[-1, 1], inf)).asStream.nextN(10); ⧉ ✔ If a binary operation occurs on two patterns, every time a value is requested from the resulting stream, both of t ...
-
... om operator changes p.(PSVop_i([5, 9], Pn(Pshuf([\u, \d])))) p.(PSVop_i([5, 9], Prand([\u, \d], inf))) // change of difIndex: p.(PSVop_i([5, 2, 3], \d)) p.(PSVop_i([5, 9], Prand([\u, \d], inf))) // "subtract" from index 0: multiples of 5, n ...
-
... ence functions asPseq{|repeats=1, offset=0| ^Pseq(buffers, repeats, offset) } asPrand{|repeats=1| ^Prand(buffers, repeats) } asPxrand{|repeats=1| ^Pxrand(buffers, repeats) } asPwalk{|stepPattern, directionPattern=1, startPos=0| ^Pwalk(buffe ...
-
... oise .ar(amp) * Decay2 .kr( Impulse .kr(0), 0.01, 0.05), sig = Klank .ar(`[ { ExpRand (400, 1600) } ! 4, 1 ! 4, { ExpRand (0.1, 0.4) } ! 4 ], exc, freqscale: accent + 1, decayscale: decayScale); DetectSilence .ar(sig, doneAction: 2); Out .a ...
-
... lacement as in basic example above \default.pVarGui(pReplace: [\dur, PL(\dur) * Prand([2,1,1], inf)] ).gui; // adding a pattern pair after the main block of pairs, // same effect as before \default.pVarGui(pAfter: [\dur, Pkey(\dur) * Prand( ...
-
... // reference beat \sustain , 0.1, \note , 8 ) ]) ).play(quant:1); ) Tdef ( \z , Prand ([1, 1, 0.23, 0.5, 0.5], inf )); // exchange time pattern Tdef ( \z , Pseq ([1, 1, 1, 1], inf )); // pattern stays in sync. Tdef ( \z , Pseq ([1, 1, 1, 0. ...
-
... \amp, Pseq([0.15, 0.25, 0.5]), \startPos, 0.10, \attack, 5, \release, Prand([6, 7, 8, 9, 10], 3), \buffer, b, \dur, Pseq([0.5, 1, 1.5]), \panning, Pwhite(-1, 1.0); ); ~inLove2 = Pbind( \instrument, "granny1", ...
-
... // loopback IP for this test Pdef(\xx, Pbind(\dur, Pseries(0.2, 0.1, 6), \note, Prand([0, 2, 3, 4, 8, 9], inf))); n.sendMsg("/oo", \Pdef_xx, \play); Ndef(\zz, { |freq=20, numharm = 200| Blip.ar(freq * [1, 1.2], numharm) * 0.3 } ); n.sendMsg ...