rsc3/doc/help/ugen/noise/lfd-clip-noise.help.scrbl

49 lines
1.2 KiB
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(lfdclip-noise rate freq)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Like lfclip-noise, it generates the values -1 or +1 at a rate given
by the freq argument, with two differences: no time quantization,
and fast recovery from low freq values.
(lfclip-noise, as well as lf-noise0,1,2 quantize to the nearest
integer division of the samplerate, and they poll the freq argument
only when scheduled, and thus seem to hang when freqs get very
low).
If you don't need very high or very low freqs, or use fixed freqs,
lfclip-noise is more efficient.
2022-08-28 10:27:01 +00:00
Try wiggling mouse quickly; LFNoise frequently seems stuck,
2022-08-24 13:53:18 +00:00
LFDNoise changes smoothly.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (mul-add (lfclip-noise ar (mouse-x kr 0.1 1000 1 0.1)) 200 500)))
(audition (out 0 (mul (sin-osc ar f 0) 0.2))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (mul-add (lfdclip-noise ar (mouse-x kr 0.1 1000 1 0.1)) 200 500)))
(audition (out 0 (mul (sin-osc ar f 0) 0.2))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
LFNoise quantizes time steps at high freqs, LFDNoise does not:
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (x-line kr 1000 20000 10 remove-synth)))
(audition (out 0 (mul (lfclip-noise ar f) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (x-line kr 1000 20000 10 remove-synth)))
(audition (out 0 (mul (lfdclip-noise ar f) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00