-
... ivial example (sc output in purple): ( n = Proto .new({ // a variable ~stream = Pxrand ([0, 2, 4, 5, 7, 9, 11], inf ).asStream; // a "method" ~next = { ~stream.next }; }); // keep the method, but change the variable o = n.clone({ ~stream = ...
-
... ,Pseq([2],16), \root,[-24,-17], \degree,Pseq([0,3,5,7,9,11,5,1],2), \pan,1,\cut,Pxrand([1000,500,2000,300],16), \rez,Pfunc({0.7.rand +0.3}), \amp,0.12), 0.5,Pbind(\instrument,\pattern_Ex, \out, 20, \dur,Pseq([Pseq([2],15),1.5],1), \root,-12 ...
-
... ,Pseq([2],16), \root,[-24,-17], \degree,Pseq([0,3,5,7,9,11,5,1],2), \pan,1,\cut,Pxrand([1000,500,2000,300],16), \rez,Pfunc({0.7.rand +0.3}), \amp,0.12), 0.5,Pbind(\instrument,\pattern_Ex, \out, 20, \dur,Pseq([Pseq([2],15),1.5],1), \root,-12 ...
-
... ernList, repeats ) - random selection from list Prand ([p, q, r], inf ).play // Pxrand( patternList, repeats ) - random selection from list without repeats Pxrand ([p, q, r], inf ).play // Pwrand( patternList, weights, repeats ) - weighted ...
-
... collect(~rhythms[_]).flatten * 0.3, \midinote, Pstutter(Pwhite(1, 2), Pclump(3, Pxrand((50..100), inf))).flatten + [0, 12], \pan, Pstutter(Pwhite(1, 2), Pclump(3, Pwhite(-1.0, 1))).flatten ).play; ) // more variation by larger deviation fro ...
-
... root}), \octave, Pwrand([5,6,7],[1,0.5, 0.125].normalizeSum, inf), \degree, Pxrand([1, 4, 5], inf)-1, \index, Pfunc { |e| ((e.use{ ~midinote.()} - ~violins_1st_sus_lowest_note-1)/3).floor }, \buf, Pindex(~violins_1st_sus_buffers, Pk ...
-
... par ([ Pbind ( // melody part \dur , Prand ([0.2, 0.4, 0.6], inf ), \midinote , Pxrand ([71, 72, 74, 76, 77, 79], 10), \db , -26, \legato , 1.1 ), Pbind ( // harmony part \pan , 0.4, \dur , Pseq ([0.1, 0.5, 0.4, 0.6], 4), \midinote , Pseq ( ...
-
... 1]],4), Pseq([~wt_buf[2]],4), ],[9,3,1].normalizeSum,inf), \midinote, Pxrand([ Pseq([\,67,60,Prand([58,70,\])],1), Pseq([\,67,58,Prand([57,63,\])],1), Pseq([\,70,72,Prand([65,79,\])],1) ],inf), \amp, Pseq([0,0.18 ...
-
... rbSize, 0.9, \verbDamp, 0.5, \vibratoRate, 0.1, \vibratoMul, 100, \dur, Pxrand([1/3, 1/2, 1], 128/2), ); ) // Egyptian ( ~egyptian1 = Pbind( \instrument, "plucking2.0", \scale, Scale.egyptian, \degree, Pseq([Pwhite([-7, ...
-
... eq(buffers, repeats, offset) } asPrand{|repeats=1| ^Prand(buffers, repeats) } asPxrand{|repeats=1| ^Pxrand(buffers, repeats) } asPwalk{|stepPattern, directionPattern=1, startPos=0| ^Pwalk(buffers, stepPattern, directionPattern, startPos) } ...