-
... eld the object x = 5; y = x.repeat(6); y.nextN(8); ⧉ ✔ Pattern: -repeat (n) x = Prand([1, 2]).repeat(6).asStream; x.nextN(8); ⧉ ✔ Pattern: -loop x = Prand([1, 2]).loop.asStream; x.nextN(8); ⧉ ✔ Stream: -repeat (n) embeds the stream repeated ...
-
... um, 0.09 ).play ) ( Pbind(\instrument, \harpsichord_pluck, \degree, Phprand(-14, 14, 50), \scale, Scale.harmonicMinor, \dur, Pseq([Pseries(0.02 * 15, -0.02, 15).clip(0.01, 0.1*15), Pseries(0.01, 0.01, 15), ],1), \db, -10, ...
-
... ],addAction:'addToTail'); ~rainbow = Pbind( \instrument, \rainbow, \dur, Prand([0.2,1.3],inf), \buf, ~scale1, \root, Prand([23,30,35,37],inf), \amp, Pwhite(0.15,0.5,inf), \bottom, Prand([2,5],inf), \top, Pwhite(7.0,9.1,inf) ...
-
... [ Env.adsr(0.1,0.1,0.8,3.3) ], ],inf), \freq, Pwhite(100,1500), \freq, Prand([100,1500,200,500,100],inf) * 0.7, \freq, Prand([100,1500,200,500,100],inf) * 1, \freq, Prand([100,1000,200,500,300,1000],inf) * 1, \freq, Pseq([100 ...
-
... 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, ...
-
... interval p = Pstep( Pbind( \ctranspose, [0, 4, 7], \note, Pwhite(0, 12), \dur, Prand([0.2, 0.4, 0.8], inf) ), Prand([1, 2, 4], inf)/4 ); Ppar([p, p]).play; ) // change degree independently of number of events that have been playing ( Pchai ...
-
... .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 ]) ...
-
... ject embed values randomly chosen from a list Source: ListPatterns.sc See also: Prand , Pwrand Description Like Prand , returns one item from the list at random for each repeat, but Pxrand never repeats the same element twice in a row. Clas ...