-
Pexprand random values that follow a Exponential Distribution superclass: Pattern Pexprand(lo, hi, length) lo, hi lower and upper boundary of values (default: 0.0001 and 1.0) lo and hi should both be positive or negative (their range should ...
-
... 0.2], inf ), \legato , sin( Ptime ( inf ) * 0.5).linexp(-1, 1, 1/3, 3), \amp , Pexprand (0.5, 1.0, inf ) ).play(quant: 1); ) p.stop; Previous: PG_Cookbook03_External_Control Next: PG_Cookbook05_Using_Samples
-
... \bufnum , b, \start , Pwhite (0, (b.numFrames * 0.7).asInteger, inf ), \delta , Pexprand (0.2, 1.5, inf ), \time , Pkey ( \delta ), \stretch , Pexprand (1.0, 4.0, inf ), \amp , 0.5, \attack , 0.1, \decay , 0.2 ).play; ) p.stop; b.free; // b ...
-
... inf )); p = Pbind ( \degree , ~degree, \dur , ~dur ).play; ) ~degree.source = ( Pexprand (1, 8, inf ) - 1).round; ~dur.source = Pwrand (#[0.25, 0.5, 0.75], #[0.5, 0.3, 0.2], inf ); p.stop; Another way is to use Pdefn , which is a global nam ...
-
... (0, 12, inf ), \dur , Pwrand ([0.25, Pn (0.125, 2)], #[0.8, 0.2], inf ), \amp , Pexprand (0.1, 0.5, inf ), \sampleBaseFreq , 440, \instrument , \sampler , \bufnum , b ).play(protoEvent: samplerEvent); ) p.stop; b.free; Multi-sampled instrum ...
-
... gth): Random numbers, equal distribution ("white noise"). Like rrand(lo, hi). * Pexprand(lo, hi, length): Random numbers, exponential distribution. Like exprand(lo, hi). * Pbrown(lo, hi, step, length): Brownian motion, arithmetic scale (add ...
-
... ], \stepsPerOctave , 19, \degree , Pwhite (0, 7, inf ), \dur , 0.125, \legato , Pexprand (0.2, 6.0, inf ) ).play; ) p.stop; Amplitude conversion Finally, you can specify amplitude as \db or \amp . If it's given as \db, the amplitude will be ...
-
... Pbind ( \type , \set , \id , a, \instrument , \event_set , \args , #[], \freq , Pexprand (200, 600, inf ), \dur , Pwhite (1, 5, inf ) * 0.125 ).play; ) p.stop; a.free; By argument names: args: Provide a list of the Synth argument names as a ...
-
... ometric brownian motion Plprand Phprand Pmeanrand Pbeta Pcauchy Pgauss Ppoisson Pexprand Pwrand ([ 1, 2, 3 ], [0.1, 0.3, 0.6], 20); // choose from a list, probabilities by weights Pshuf ([ 1, 2, 3, 4 ], 2); // scramble the list, then repeat ...
-
... i, length) -- random number generator, uses rrand(lo, hi) -- equal distribution Pexprand(lo, hi, length) -- random number generator, uses exprand(lo, hi) -- exponential distribution Other patterns modify the output of value patterns. These ...