cmake build system: visiblity support for clang
[supercollider.git] / Help / UGens / Chaos / LatoocarfianN.html
blob7eaf4e143320b2e836f621d349067bb8d4a618cd
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="824.42">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.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}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; min-height: 16.0px}
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: #a71e12}
16 p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
17 p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #0019b7}
18 span.s1 {text-decoration: underline}
19 span.s2 {font: 8.3px Helvetica}
20 span.s3 {color: #0019b7}
21 span.s4 {color: #000000}
22 span.Apple-tab-span {white-space:pre}
23 </style>
24 </head>
25 <body>
26 <p class="p1"><b>LatoocarfianN<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>latoocarfian chaotic generator</b></p>
27 <p class="p2"><br></p>
28 <p class="p3"><b>LatoocarfianN.ar(freq, a, b, c, d, xi, yi, mul, add)</b></p>
29 <p class="p2"><br></p>
30 <p class="p3"><span class="Apple-tab-span"> </span><b>freq</b> - iteration frequency in Hertz</p>
31 <p class="p3"><span class="Apple-tab-span"> </span><b>a, b, c, d</b> - equation variables</p>
32 <p class="p3"><span class="Apple-tab-span"> </span><b>xi</b> - initial value of x</p>
33 <p class="p3"><span class="Apple-tab-span"> </span><b>yi</b> - initial value of y</p>
34 <p class="p2"><br></p>
35 <p class="p3">A non-interpolating sound generator based on a function given in Clifford Pickover's<span class="Apple-converted-space"> </span></p>
36 <p class="p3">book <span class="s1">Chaos In Wonderland</span>, pg 26.<span class="Apple-converted-space"> </span></p>
37 <p class="p3">The function is:</p>
38 <p class="p2"><span class="Apple-tab-span"> </span></p>
39 <p class="p3"><span class="Apple-tab-span"> </span>x<span class="s2"><sub>n+1</sub></span> = sin(by<span class="s2"><sub>n</sub></span>) + c*sin(bx<span class="s2"><sub>n</sub></span>)</p>
40 <p class="p3"><span class="s2"><span class="Apple-tab-span"> </span></span>y<span class="s2"><sub>n+1</sub></span> = sin(ay<span class="s2"><sub>n</sub></span>) + d*sin(ax<span class="s2"><sub>n</sub></span>)</p>
41 <p class="p4"><br></p>
42 <p class="p3">According to Pickover, parameters <b>a</b> and <b>b</b> should be in the range from -3 to +3,</p>
43 <p class="p3">and parameters <b>c</b> and <b>d</b> should be in the range from 0.5 to 1.5.</p>
44 <p class="p3">The function can, depending on the parameters given, give continuous chaotic</p>
45 <p class="p3">output, converge to a single value (silence)<span class="Apple-converted-space">  </span>or oscillate in a cycle (tone).</p>
46 <p class="p3">This UGen is experimental and not optimized currently, so is rather hoggish of CPU.</p>
47 <p class="p5"><br></p>
48 <p class="p5"><br></p>
49 <p class="p6">// default initial params</p>
50 <p class="p7">{ <span class="s3">LatoocarfianN</span>.ar(<span class="s3">MouseX</span>.kr(20, <span class="s3">SampleRate</span>.ir)) * 0.2 }.play(s);</p>
51 <p class="p5"><br></p>
52 <p class="p6">// randomly modulate all params</p>
53 <p class="p7">(</p>
54 <p class="p8"><span class="s4">{ </span>LatoocarfianN<span class="s4">.ar(</span></p>
55 <p class="p8"><span class="s4"><span class="Apple-tab-span"> </span></span>SampleRate<span class="s4">.ir/4,<span class="Apple-converted-space"> </span></span></p>
56 <p class="p7"><span class="Apple-tab-span"> </span><span class="s3">LFNoise2</span>.kr(2,1.5,1.5),<span class="Apple-converted-space"> </span></p>
57 <p class="p7"><span class="Apple-tab-span"> </span><span class="s3">LFNoise2</span>.kr(2,1.5,1.5),</p>
58 <p class="p7"><span class="Apple-tab-span"> </span><span class="s3">LFNoise2</span>.kr(2,0.5,1.5),</p>
59 <p class="p7"><span class="Apple-tab-span"> </span><span class="s3">LFNoise2</span>.kr(2,0.5,1.5)</p>
60 <p class="p7">) * 0.2 }.play(s);</p>
61 <p class="p7">)</p>
62 </body>
63 </html>