2 declare name "pink -- pink noise";
3 declare author "Albert Graef";
10 vol = nentry("vol", 0.3, 0, 10, 0.01); // %
11 pan = nentry("pan", 0.5, 0, 1, 0.01); // %
13 // pink noise filter (-3dB per octave), see musicdsp.org
15 pink = f : (+ ~ g) with {
16 f(x) = 0.04957526213389*x - 0.06305581334498*x' +
18 g(x) = 1.80116083982126*x - 0.80257737639225*x';
21 // pink noise generator
23 process = (noise:pink)*vol : panner(pan);