-
... embedInStream ( inval ) . randSeed . randSeed = value Examples a = Pseed(1972, Prand([1, 2, 3], inf)); b = a.asStream; 10.do({ b.next.post }); c = a.asStream; 10.do({ c.next.post }); // using a seed pattern as input: a = Pseed(Pseq([1812, ...
-
... ar a, b; a = Pbind( \degree, Pswitch(#[0, 2b, 3], Ptime(8).round(2) / 2), \dur, Prand(#[0.2, 0.5, 1.1, 0.25, 0.15], inf) ); b = Pbind( \degree, Pseq(#[0, 2b, 3], 1), \dur, 2, \ctranspose, -7 ); Pseq([Event.silent(1.25), Ppar([a, b])], inf). ...
-
... Pan2.ar(SinOsc.ar(freq, 0, env), pan)) }).add; ) Pdefn(\x, Pn(1, 3)); Pdefn(\y, Prand([5, 9, 1], 2)); Pdefn(\z, Pdefn(\y) * 2); ( Pdef(\play, Pbind( \instrument, \gpdef, \harmonic, Pnsym(Pseq([\x, \x, Prand([\x, \y]), [\z, \y], \y], inf)).t ...
-
... sum = value . tolerance . tolerance = value Examples ( var a, x; a = Pconst(5, Prand([1, 2, 0.5, 0.1], inf)); x = a.asStream; 9.do({ x.next(Event.default).postln }); ) // Pconst used as a sequence of durations ( SynthDef(\help_sinegrain, { ...
-
... pattern by a GUI ( var pattern = Pbind( \degree, Pseries(7, Pwhite(1, 3, inf) * Prand(#[-1, 1], inf), inf).fold(0, 14) + Prand(#[[0, -2, -4], [0, -3, -5], [0, -2, -5], [0, -1, -4]], inf), \dur, Pwrand(#[1, 0.5], #[0.8, 0.2], inf) ), player, ...
-
... divide a pattern into various proportions ( a = Prorate(Pseq([0.35, 0.5, 0.8]), Prand([20, 1], inf)); x = a.asStream; x.nextN(8) ) // divide 1 into several parts ( a = Prorate(Pseq([[1, 2], [5, 7], [4, 8, 9]]).collect(_.normalizeSum), 1); x ...
-
... 0.1).softclip * 0.8); }, [\ir, 0]).add; ) ( var p, q, r, o; p = Pbind(\degree, Prand((0..7), 12), \dur, 0.3, \legato, 0.2); q = Pfxb(p, \echo, \dtime, 0.2, \decay, 3); r = Pfxb(q, \distort, \pregain, 20, \amp, 0.25); o = Pfxb(r, \wah); Pse ...
-
... selection principles with repetition check. Location: NOT INSTALLED! See also: Prand , Pxrand , Pseq , Pindex , Pshuf Description The name of this object refers to Pattern Urn. Random selection is applied to an input list until all element ...
-
... ip to 1 ~lookBack = 0; ~doSkip = true; p = Pbind( \dur, 1/5, \midinote, PSloop( Prand((60..80), inf), bufSize: 10, lookBack: { ~lookBack }, doSkip: { ~doSkip } ) ).play ) // wait a bit to fill buffer // keep running, set loop lengths immedi ...
-
... t, SinOsc.ar([freq, freq + 0.1.rand2], 0, env)) }).add; ) ( var p; p = Pdfsm( [ Prand([0, 1, 2], inf), // signalStream IdentityDictionary[ // state 0 0 -> [2, Pseq([67, 68, 69], 2)], 1 -> [0, 66], 2 -> [1, 65] ], IdentityDictionary[ // stat ...