clean up indentation and spacing
[supercollider.git] / HelpSource / Classes / LFDNoise1.schelp
blob7bf54727559f63bcc07fe3b933654a7cbce45af4
1 class:: LFDNoise1
2 summary:: Dynamic ramp noise
3 related:: Classes/LFClipNoise, Classes/LFDClipNoise, Classes/LFDNoise0, Classes/LFDNoise3, Classes/LFNoise0, Classes/LFNoise1, Classes/LFNoise2
4 categories::  UGens>Generators>Stochastic
7 Description::
9 Like  link::Classes/LFNoise1:: , it generates linearly interpolated
10 random values at a rate given by the  code::freq::
11 argument, with two differences:
12 list::
13 ## no time quantization
14 ## fast recovery from low freq values footnote::
15 link::Classes/LFNoise0:: ,  link::Classes/LFNoise1::  and
16 link::Classes/LFNoise2::  quantize to the nearest integer division
17 of the samplerate, and they poll the  code::freq::
18 argument only when scheduled; thus they often seem to hang
19 when freqs get very low.
23 If you don't need very high or very low freqs, or use fixed freqs,
24 link::Classes/LFNoise1::  is more efficient.
27 classmethods::
29 method::ar, kr
31 argument::freq
32 Approximate rate at which to generate random values.
34 argument::mul
35 Output will be multiplied by this value.
37 argument::add
38 This value will be added to the output.
40 Examples::
42 code::
43 // try wiggling mouse quickly;
44 // LFNoise frequently seems stuck, LFDNoise changes smoothly.
46 {  SinOsc.ar(LFNoise1.ar(MouseX.kr(0.1, 1000, 1), 200, 500), 0, 0.2)  }.play
48 {  SinOsc.ar(LFDNoise1.ar(MouseX.kr(0.1, 1000, 1), 200, 500), 0, 0.2)  }.play
51 // LFNoise quantizes time steps at high freqs, LFDNoise does not:
53 { LFNoise1.ar(XLine.kr(2000, 20000, 8), 0.1) }.scope;
55 { LFDNoise1.ar(XLine.kr(2000, 20000, 8), 0.1) }.scope;