-
... negrain ); // this pattern has indetermined length: a = Prand ([ Pbind ( \dur , Pseq ([0.02, 0.002, 0.1, 0.1],2), \degree , Pseq ([9, 7, 5], inf ), \instrument , \help_sinegrain ), Pbind ( \dur , Pseq ([1, 0.35],2), \degree , Pseq ([0, [2b, ...
-
... playing ( Pchain ( Ppar ([ Pbind ( \degree , Pbrown (0, 12, 1), \dur , Pstep ( Pseq ([0.1, 0.2, 0.4, 0.8, 1.6], inf ), 3.2) ), Pbind ( \degree , Pbrown (0, 20, 1), \dur , Pstep ( Pseq ([0.1, 0.2, 0.4, 0.8, 1.6], inf ), 4.5) ) ]), Pbind ( \ ...
-
... ======================== ( ~hihat1 = Pbind( \instrument, "hihat", \dur, Pseq([1/8, Rest(2/8), 2/8, 1/8], inf), \att, 0.01, \rel, Pseq([0.3, 1, 0.1, 0.3], inf), \ffreq, 11000, \pan, 0, \amp, 0.1 * Pwhite(0.1, 1.8) ); ...
-
Pbindef( \metalPlate, \instrument, "metalPlate", \dur, Pseq([ 0.3, 0.15, 0.3, 0.3, 0.3], inf), \legato, 0.25, \freq, Pseq([ 200, Pxrand([75, 100, 120, 150], 4)], inf), \rel, Pseq([0.75, 0.5, 0.5, 0.5, 0.5], inf) * 1.5, \xpos, Pwhite(0.1, 0. ...
-
... 0, ratio=0.1; Pbind ( \instrument , \pgrain , \dur , sustain.value / n, \freq , Pseq ((1..n)) * ratio + 1 * freq.value // freq is a function, has to be evaluated ) }); Pdef ( \sweep2 , { arg sustain=1, n=8, freq=440, ratio=0.1; Pbind ( \ins ...
-
... = AlgaNode({SinOsc.kr(1).range(100, 500)}); a = AlgaPattern(( def: \test, dur: Pseq([0.25, 0.5, 1]), freq: Pwhite(100, 1000) )).play; }); ) a.interpPattern(\freq, Pseq([1000, 880]), 2) a.interpPattern(\freq, Pwhite(1000, 800), 2) a.interpP ...
-
... \ctranspose , 2).play; // now change the definition Pdef ( \x , Pbind ( \note , Pseq ([0, 3, 5, 7, 9, 11], inf ))); Pdef ( \x , Pbind ( \freq , Pseq ([1000, 1923, 245.2, 1718] / 1.2 + 0.1, inf ))); Creation / Class Methods *new(key, pattern ...
-
... ================== ( ~amx = Pbind( \instrument, "am1", \midinote, Pseq([80, 79, 78, 77, 76, 75, 74, 73, 72, 71,70, 69, 68, 67, 66, 65, 64, 63, 62, 61,60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50], 4), \dur, 0.2, \amp, ...
-
... bind(\instrument,\rootsOfUnitySum, \amp,amps, \dur,durs, \freq,freq, \n,Pseq([n],~nums.size), \ks , Pseq(all{:~divisors.value(n),n<-~nums},1)).trace(); r }; ~seq = (1..13); ~tau = all{:~divisors.value(n).size,n<-~seq}; ...
-
... // examples // perform a sequence of addition and subtraction ( a = Pperform ( Pseq ([ '+' , '-' ], 16), Pseq ([0, 1, 2, 3], inf ), Pseq ([3, 4, 5], inf )); x = a.asStream; x.nextN(20); ) // duplicate and multiply ( a = Pperform ( Pseq ([ ...