-
... Examples // the first argument can be a pattern, too: ( var a, b; a = Pstutter(Prand([1, 2, 5], inf), Pwhite(-1.0, 1.0)); // repeat either once, twice, or five times x = a.asStream; 20.do { x.next.postln }; ) // using event patterns: ( Syn ...
-
... 0.5,0.5,0.5,1,0.5,0.5,1,1]*0.25,inf), \dur , 2, \degree, Pseq([1,8,8,8,8,8,8,-6,Prand([9,10,11],1),1,7,8]-8, inf), \amp , Pwhite(0.2,0.8), \c3 , Pseq([Pseq([1400],24),Pseq([300],24)],inf), \pan , Pwhite(-1,1), ).play; ) ⧉ ✔ helpfile source: ...
-
... 5,0.5,0.5,1,0.5,0.5,1,1]*0.25,inf), \dur , 0.9, \degree, Pseq([1,8,8,8,8,8,8,-6,Prand([9,10,11],1),1,7,8]-8, inf), \amp , Pwhite(0.2,0.8), \c3 , Pseq([Pseq([1400],24),Pseq([300],24)],inf), \pan , Pwhite(-1,1), \fB , Pseq([0,80,400],inf), ). ...
-
... .kr(Env.perc(0.03, sustain), 1, doneAction: Done.freeSelf); 5.do { var d; d = exprand(0.01, 1); u = SinOsc.ar(d * 300, u, rrand(0.1, 1.2) * d, 1) }; Out.ar(out, Pan2.ar(SinOsc.ar(u + 1 * freq, 0, amp * env), pan)); }).add; ) s.boot; #a, b, ...
-
... |ev| ev[\freq] * rand(0.01) }), \sustain, Pwhite(log(0.1), log(20)).exp, \dur, Prand([0.1, 0.1, 0.1, 0.1, 0.2, 1, 2], inf), \db, Pstep(Pseq([-20, -30, -25, -30], inf), 0.2) ); // unrelated cluster pattern running on TempoClock.default Pbin ...
-
... \dur, 0.2).trace.play; // replace elements ~a[0] = 72.5; ~a[1] = 74.5; ~a[2] = Prand([85, 86, 87]); // replace array // Ptuple and PLtuple start with new embedding of ALL patterns // if one ends, so here default repeats = inf of PLshuf has ...
-
... Within a given range rrand(24, 48) // linear distribution in the given range. exprand(0.01, 1) // exponential distribution; // both numbers must have the same sign. // (Note that the distribution of numbers is not exactly an exponential dis ...
-
... ould just pass in your own protoEvent to the play method. ( Pbind( \instrument, Prand([\help_SPE7_BerlinB, \help_SPE7_CFString1],inf), \degree, Pseq([0,1,2,4,6,3,4,8],inf), \dur, 0.8, \octave, 3, \amp, 0.03 ).play; // this returns an EventS ...
-
... or example SinOsc works. Generators PBlip PClipNoise PCuspN PDC PDust PDust2 PExpRand PFBSineN PFSinOsc PGbmanN PHenonN PImpulse PIRand PLatoocarfianN PLFClipNoise PLFNoise0 PLFNoise1 PLFNoise2 PLFPulse PLFSaw PLFTri PLinCongN PLine PLorenz ...
-
... dsr,gate,0.2, doneAction: 2) },[ Pseq((70 + [ 0, 1, 5, 6, 10 ]).midicps ,inf) * Prand(2 ** [0,-1,2,-2,-3],inf), // octave shifts 0.2, Patch({ LFTri.kr(0.1,[0.0,0.5],0.5,0.5) }), Env.adsr(0.3,sustainLevel: 0.4), Pbrown(2000,10000,100), Env.a ...