supernova: fixes for boost-1.49 and gcc-4.7
[supercollider.git] / Help / UGens / Noise / Logistic.html
blobb5f82fdc37e94a52075cb6c665ccf54666a678ef
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 Monaco; min-height: 16.0px}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #ad140d}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
16 span.s1 {font: 18.0px Helvetica}
17 span.s2 {color: #001bb9}
18 span.s3 {color: #2c7014}
19 span.Apple-tab-span {white-space:pre}
20 </style>
21 </head>
22 <body>
23 <p class="p1"><span class="s1"><b>Logistic<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>chaotic noise function</b></p>
24 <p class="p2"><br></p>
25 <p class="p1"><b>Logistic.ar(chaosParam, freq, init, mul, add)</b></p>
26 <p class="p2"><br></p>
27 <p class="p1">A noise generator based on the logistic map:</p>
28 <p class="p2"><br></p>
29 <p class="p1">y = chaosParam * y * (1.0 - y)</p>
30 <p class="p2"><br></p>
31 <p class="p1"><b>chaosParam</b> - a parameter of the chaotic function with useful values from 0.0 to 4.0. Chaos occurs from 3.57 up. Don't use values outside this range if you don't want the UGen to blow up.<span class="Apple-converted-space"> </span></p>
32 <p class="p1"><b>freq</b> - Frequency of calculation; if over the sampling rate, this is clamped to the sampling rate<span class="Apple-converted-space"> </span></p>
33 <p class="p1"><b>init</b> - Initial value of y in the equation above</p>
34 <p class="p2"><br></p>
35 <p class="p1">y will stay in the range of 0.0 to 1.0 for normal values of the chaosParam. This leads to a DC offset, and may cause a pop when you stop the Synth. For output you might want to combine this UGen with a LeakDC or rescale around 0.0 via mul and add: see example below.<span class="Apple-converted-space"> </span></p>
36 <p class="p3"><br></p>
37 <p class="p4"><br></p>
38 <p class="p5">// default values</p>
39 <p class="p6">{ <span class="s2">Logistic</span>.ar }.play</p>
40 <p class="p4"><br></p>
41 <p class="p5">// onset of chaos</p>
42 <p class="p6">{ <span class="s2">Logistic</span>.ar(<span class="s2">Line</span>.kr(3.55, 3.6, 5), 1000) }.play</p>
43 <p class="p4"><br></p>
44 <p class="p5">// explore via Mouse</p>
45 <p class="p6">{ <span class="s2">Logistic</span>.ar(<span class="s2">MouseX</span>.kr(3, 3.99), <span class="s2">MouseY</span>.kr(10, 10000, <span class="s3">'exponential'</span>), 0.25, 0.5) }.play</p>
46 <p class="p3"><br></p>
47 </body>
48 </html>