supernova: fixes for boost-1.49 and gcc-4.7
[supercollider.git] / Help / UGens / Analysis / Amplitude.html
blob1c09f517d4366cefe8432bdc00f867fd1b985cd2
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.44">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.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: 9.0px Monaco; color: #000000; min-height: 12.0px}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #bf0000}
16 p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #0000bf}
17 p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; min-height: 16.0px}
18 span.s1 {font: 18.0px Helvetica}
19 span.s2 {color: #000000}
20 span.s3 {color: #0000bf}
21 span.Apple-tab-span {white-space:pre}
22 </style>
23 </head>
24 <body>
25 <p class="p1"><span class="s1"><b>Amplitude<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></span><b>amplitude follower</b></p>
26 <p class="p2"><br></p>
27 <p class="p3"><b>Amplitude.kr(in, attackTime, releaseTime, mul, add)</b></p>
28 <p class="p2"><br></p>
29 <p class="p2"><br></p>
30 <p class="p3">Tracks the peak amplitude of a signal.</p>
31 <p class="p3"><b>in</b> - input signal.</p>
32 <p class="p3"><b>attackTime</b> - 60dB convergence time for following attacks.</p>
33 <p class="p3"><b>releaseTime</b> - 60dB convergence time for following decays.</p>
34 <p class="p2"><br></p>
35 <p class="p4"><br></p>
36 <p class="p4"><br></p>
37 <p class="p5">(</p>
38 <p class="p6">// use input amplitude to control SinOsc frequency</p>
39 <p class="p5">{</p>
40 <p class="p7"><span class="s2"><span class="Apple-tab-span"> </span></span>SinOsc<span class="s2">.ar(</span></p>
41 <p class="p7"><span class="s2"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>Amplitude<span class="s2">.kr(</span></p>
42 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s3">Blip</span>.ar(3, 20) * <span class="s3">LFNoise1</span>.kr(0.1).range(0, 1),</p>
43 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s3">MouseX</span>.kr(0.001, 1, 1),</p>
44 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s3">MouseY</span>.kr(0.001, 1, 1),</p>
45 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>1200,</p>
46 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>400</p>
47 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>),</p>
48 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>0, 0.3)</p>
49 <p class="p5">}.play;</p>
50 <p class="p5">)</p>
51 <p class="p4"><br></p>
52 <p class="p4"><br></p>
53 <p class="p6">// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.</p>
54 <p class="p5">{ <span class="s3">Pulse</span>.ar(90, 0.3, <span class="s3">Amplitude</span>.kr(<span class="s3">SoundIn</span>.ar(0))) }.play;</p>
55 <p class="p4"><br></p>
56 <p class="p4"><br></p>
57 <p class="p5">(</p>
58 <p class="p6">// use input amplitude to control SinOsc frequency - use headphones to prevent feedback.</p>
59 <p class="p5">{</p>
60 <p class="p7"><span class="s2"><span class="Apple-tab-span"> </span></span>SinOsc<span class="s2">.ar(</span></p>
61 <p class="p7"><span class="s2"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>Amplitude<span class="s2">.kr(</span></p>
62 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s3">SoundIn</span>.ar(0),</p>
63 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>0.01,</p>
64 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>0.01,</p>
65 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>1200,</p>
66 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>400</p>
67 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>),</p>
68 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>0, 0.3)</p>
69 <p class="p5">}.play;</p>
70 <p class="p5">)</p>
71 <p class="p8"><br></p>
72 </body>
73 </html>