[chuck-users] continuous random values

Thomas Girod girodt at gmail.com
Sun Sep 26 18:07:08 EDT 2010

you are right, that is the kind of thing I'm looking for. The SubNoise +
LPF technique is a nice workaround, too bad it doesn't work for very low

I've just had a quick look at SuperCollider's code for LFNoise, and it
looks like they are generating new values at a rate defined by the
noise frequency, and throw some non-linear interpolation inbetween.


On Sun, Sep 26, 2010 at 11:48:40AM -0700, Tom Lieber wrote:
> It sounds like Thomas is looking for a noise generator with smoother
> output than Noise. I think Stefan was closest when he suggested
> sub-sampling Noise and interpolating the output. The easiest way to do
> this is SubNoise => LPF.
> In this patch I save the output as a file so I can examine the shape
> in Audacity. I got terrible results for low values of freq like 1, but
> 5 and up look okay. I lowered the gain on the noise so that WvOut
> wouldn't clip.
>   5 => float freq; // rough frequency of the noise
>   SubNoise n => LPF lpf => WvOut wav => dac;
>   ((second / samp) / freq) $ int => n.rate;
>   .6 => n.gain;
>   freq => lpf.freq;
>   "subnoise.wav" => wav.wavFilename;
>   minute => now;
> -- 
> Tom Lieber
> http://AllTom.com/
> http://favmusic.net/

More information about the chuck-users mailing list