-
... duration comes close enough to dur . ( var a, b; a = Pfindur (5, Pbind ( \dur , Prand ([1, 2, 0.5, 0.1], inf ))); x = a.asStream; 9.do({ x.next( Event .default).postln; }); ) Pfindur used as a sequence of pitches ( SynthDef ( \help_sinegrai ...
-
... 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, ...
-
... .ar(rate * [1, 1.2]), freq, dt)*0.1 }; a.play; ( a[1] = \set -> Pbind ( \dur , Prand ([1, 0.5], inf ), \freq , Pwhite (200.0, 1000, inf ), \rate , Pstutter (4, Prand ([1, 3, 6, 10], inf )), \dt , Pwhite (0.01, 0.1, inf ) ) ); // modify the ...
-
... due to a bug in EnvGen for very short sustain times. ( 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 pitches ( SynthDef ( \help_sinegrain ...
-
... nOsc .ar(freq, 0, env), pan)) }).store; ) 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 ]) ...
-
... rvals 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. If the curren ...
-
... .add; ) ( a = Plambda ( Pseq ([ Pfindur (5, Ppar ([ Pbind ( \note , Plet ( \x , Prand ([1, 5, 1, [10, 14]], inf )), \dur , 8/3, \pan , -1), Pbind ( \note , Plet ( \y , Pseq ([5, 3, 2, 0, [0, 5, 6, 9]], inf )), \dur , 0.5, \pan ,1), Pbind ( ...
-
... ide 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) ...
-
... .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, ...
-
... rn 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 ) ), ...