Dwhite returns numbers in the continuous range between lo
and hi
. Diwhite returns integer values.
The arguments can be a number or any other UGen.
See Pwhite, WhiteNoise for structurally related equivalents.
lo |
Minimum value. |
hi |
Maximum value. |
length |
Number of values to create. |
(
{
var a, freq, trig;
a = Dwhite(0, 15, inf);
trig = Impulse.kr(MouseX.kr(1, 40, 1));
freq = Demand.kr(trig, 0, a) * 30 + 340;
SinOsc.ar(freq) * 0.1
}.play;
)