-
... DNoise3 .kr(freq, dev, center) }); p = PHS (h, nil , // default help synth args Prand ([0.4, 0.2], inf ), [ \midinote , Pkey ( \val ), \amp , 0.1 ], 0.1, [ \midinote , Pkey ( \val ) + 9.5 + Pxrand ([0, 2, 5], inf ), \amp , 0.08 ] ).play; ) ...
-
... ithin 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. Test them multiple times with a do loop: 20.do({ 5.rand.postln; }); // even ...
-
... sic pattern with Pchain Pchain( Pbind(*[mtranspose: Pkey(\mtranspose) + Pdup(8, Prand([0, [0, 3, -2], [0, 2, 4]], inf))]), // make some notes into triads Pbind(*[ctranspose: Pwhite(-0.1, 0.1)]), // add random detuning to notes Pbind(*[\scal ...
-
... 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: ...
-
... (out,sig) }; ).add; ) Synth(\rev,[\in:~fx]); ( fork{ var degrees=Prand([0,4,5,7,9,12],inf).asStream; var root=[36,48,60,72]; var x; x=Array.new; a=PatternProxy(Pseq([0+root.wchoose([0.3,0.4,0.2,0.1])],inf)); d=1/8; ...
-
... | var ha = Harmonics((3,5..13).choose.debug('sub freq size')); var i = 6.exprand(26).asInteger.debug('oscillators'); var sig = Pan2.ar( EnvGen.ar( Env( [0] ++ SinOsc.kr( NamedControl.kr(\in_freq, Array.exprand(i-2,0 ...
-
... v = EnvGen .kr( Env .perc(0.03, sustain), 1, doneAction:2); 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)); }).store; ) s.boot; x ...
-
... repeats, offset): Play through the entire list 'repeats' times. Like list.do. * Prand(list, repeats): Choose items from the list randomly (same as list.choose). * Pxrand(list, repeats): Choose randomly, but never repeat the same item twice. ...
-
... scale: Scale.minor, degree: Pbrown(4, 15, 3, inf).asInteger, dur: Prand([Pseq([0.1, 0.1]), Pseq([0.1, 0.2, 0.1]), 0.2, 0.4], inf) * Pseg(Pseq([1, 1, 20, 20]), Pseq([15, 0, 15]), \exp), legato: Pwhite(0.98, 1.005) ] ...
-
... , ~mel2].flatten,inf)) // need to do something with nharm Pbindef(\b, \nharm, Prand((1..10), inf)) // varying the rhythm using amp, also guarantee a downbeat ~gr = ([1] ++ [{2.rand}!15]).flatten/10 Pbindef(\b, \amp, Pseq(~gr, inf)) // ...