Generates a single random float value in a sum of n
uniform distributions from lo
to hi
.
lo |
Lower limit of the output range. | ||||||
hi |
Upper limit of the output range. | ||||||
n |
As |
(
SynthDef("help-NRand", { arg out=0, n=0;
Out.ar(out,
FSinOsc.ar(
NRand(1200.0, 4000.0, n),
0, Line.kr(0.2, 0, 0.01, doneAction: Done.freeSelf))
)
}).add;
)
(
n = 0;
Routine({
inf.do({ arg i;
Synth.new("help-NRand", [\n, n]); 0.05.wait;
})
}).play;
)
n = 1;
n = 2;
n = 4;