supernova: fixes for boost-1.49 and gcc-4.7
[supercollider.git] / Help / UGens / Noise / LFNoise2.html
blob88e6fd139c4b396fcd2d8a5713061437c95bfaec
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="949.43">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #0000ff}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #bf0000}
16 span.s1 {font: 18.0px Helvetica}
17 span.s2 {color: #000000}
18 span.s3 {color: #0000bf}
19 span.Apple-tab-span {white-space:pre}
20 </style>
21 </head>
22 <body>
23 <p class="p1"><span class="s1"><b>LFNoise2<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></span><b>quadratic noise</b></p>
24 <p class="p2"><br></p>
25 <p class="p1"><b>LFNoise2.ar(freq, mul, add)</b></p>
26 <p class="p1"><b>LFNoise2.kr(freq, mul, add)</b></p>
27 <p class="p2"><br></p>
28 <p class="p1">Generates quadratically interpolated random values at a rate.</p>
29 <p class="p1"><b>freq</b> - approximate rate at which to generate random values.</p>
30 <p class="p2"><br></p>
31 <p class="p3"><span class="s2">see also: <a href="LFDNoise3.html">LFDNoise3</a>, <a href="LFNoise0.html">LFNoise0</a>, <a href="LFNoise1.html">LFNoise1</a></span></p>
32 <p class="p2"><br></p>
33 <p class="p1">Note: quadratic interpolation means that the noise values can occasionally extend beyond the normal range of +-1, if the <b>freq</b> varies in certain ways. If this is undesirable then you might like to <a href="../../BinaryOps/clip2.html">clip2</a> the values, or use a linearly-interpolating unit instead.</p>
34 <p class="p2"><br></p>
35 <p class="p4">{ <span class="s3">LFNoise2</span>.ar(1000, 0.25) }.play;</p>
36 <p class="p5"><br></p>
37 <p class="p6">// modulate frequency</p>
38 <p class="p5"><br></p>
39 <p class="p4">{ <span class="s3">LFNoise2</span>.ar(<span class="s3">XLine</span>.kr(1000, 10000, 10), 0.25) }.play;</p>
40 <p class="p5"><br></p>
41 <p class="p6">// as frequency modulator</p>
42 <p class="p4">(</p>
43 <p class="p4">{ <span class="s3">SinOsc</span>.ar(</p>
44 <p class="p4"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s3">LFNoise2</span>.ar(4, 400, 450),</p>
45 <p class="p4"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>0, 0.2</p>
46 <p class="p4"><span class="Apple-tab-span"> </span>)<span class="Apple-converted-space"> </span></p>
47 <p class="p4">}.play;</p>
48 <p class="p4">)</p>
49 <p class="p5"><br></p>
50 <p class="p6">// freq is the rate of interpolation points</p>
51 <p class="p4">{ <span class="s3">var</span> freq = 1000; [<span class="s3">LFNoise2</span>.ar(freq), <span class="s3">Impulse</span>.ar(freq)] }.plot</p>
52 </body>
53 </html>