cmake build system: visiblity support for clang
[supercollider.git] / Help / UGens / Filters / LagUD.html
blob90733d9231df28e02431758fc46e54a4b12c3d54
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: 16.0px Times; min-height: 19.0px}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; min-height: 16.0px}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #9d281b}
16 p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #3b6c19}
17 p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
18 p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Lucida Grande}
19 span.s1 {text-decoration: underline ; color: #0837db}
20 span.s2 {color: #000000}
21 span.s3 {color: #0024b5}
22 span.s4 {font: 9.0px Lucida Grande}
23 span.s5 {font: 9.0px Lucida Grande; color: #000000}
24 span.s6 {font: 9.0px Monaco}
25 span.s7 {color: #3b6c19}
26 span.Apple-tab-span {white-space:pre}
27 </style>
28 </head>
29 <body>
30 <p class="p1"><b>LagUD<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>exponential lag</b></p>
31 <p class="p2"><br></p>
32 <p class="p3"><b>LagUD.ar(in, lagTimeU, lagTimeD, mul, add))</b></p>
33 <p class="p3"><b>LagUD.kr(in, lagTimeU, lagTimeD, mul, add))</b></p>
34 <p class="p2"><br></p>
35 <p class="p2"><br></p>
36 <p class="p3">This is essentially the same as <b>Lag</b> except that you can supply a different 60 dB time for when the signal goes up, from when the signal goes down. This is useful for smoothing out control signals, where "fade in" should be different from "fade out".</p>
37 <p class="p3"><br>
38 See also <a href="Lag.html"><span class="s1">Lag</span></a></p>
39 <p class="p2"><br></p>
40 <p class="p3"><b>in</b> - input signal</p>
41 <p class="p3"><b>lagTimeU</b> - 60 dB lag time in seconds for the upgoing signal.</p>
42 <p class="p3"><b>lagTimeD</b> - 60 dB lag time in seconds for the downgoing signal.</p>
43 <p class="p4"><br></p>
44 <p class="p5"><br></p>
45 <p class="p6"><span class="s2">( </span>// used to lag pitch</p>
46 <p class="p7"><span class="s3">SynthDef</span><span class="s2">( </span>\lagud_help<span class="s2">,</span></p>
47 <p class="p8">{<span class="Apple-tab-span"> </span> <span class="s3">arg</span> freq=300,lagup=1, lagdown=5;</p>
48 <p class="p8"><span class="s4"><span class="Apple-tab-span"> </span></span><span class="s3">Out</span>.ar( 0,</p>
49 <p class="p6"><span class="s5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><span class="s3">SinOsc</span><span class="s2">.ar( </span>// sine wave</p>
50 <p class="p6"><span class="s5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><span class="s3">LagUD</span><span class="s2">.kr( </span>// lag the frequency</p>
51 <p class="p8"><span class="s4"><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>freq,</p>
52 <p class="p8"><span class="s4"><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>lagup,</p>
53 <p class="p8"><span class="s4"><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>lagdown</p>
54 <p class="p9"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s6">),</span></p>
55 <p class="p6"><span class="s5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><span class="s2">0, </span>// phase</p>
56 <p class="p6"><span class="s5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><span class="s2">0.2 </span>// sine amplitude</p>
57 <p class="p9"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s6">)</span></p>
58 <p class="p8"><span class="Apple-tab-span"> </span>);</p>
59 <p class="p8">}).send(s);</p>
60 <p class="p8">)</p>
61 <p class="p6"><span class="s2">x = </span><span class="s3">Synth</span><span class="s2">.new( </span><span class="s7">\lagud_help</span><span class="s2"> ); </span>// create the synth</p>
62 <p class="p6"><span class="s2">x.set( </span><span class="s7">\freq</span><span class="s2">, 500 ); </span>// set the frequency to a higher value (takes 1 second)</p>
63 <p class="p6"><span class="s2">x.set( </span><span class="s7">\freq</span><span class="s2">, 100 ); </span>// set the frequency to a lower value (takes 5 seconds)</p>
64 <p class="p8">x.free;</p>
65 </body>
66 </html>