cmake build system: visiblity support for clang
[supercollider.git] / Help / UGens / Triggers / SetResetFF.html
blob0701117dbcab164bc84c2bf074505b3fe7f80c3d
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: 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: 9.0px Monaco}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #942b17}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
16 span.s1 {color: #000000}
17 span.s2 {color: #001fb3}
18 span.Apple-tab-span {white-space:pre}
19 </style>
20 </head>
21 <body>
22 <p class="p1"><b>SetResetFF<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>set-reset flip flop</b></p>
23 <p class="p2"><br></p>
24 <p class="p3"><b>SetResetFF.ar(trig, reset)</b></p>
25 <p class="p2"><br></p>
26 <p class="p3">When a trigger is received the output is set to 1.0</p>
27 <p class="p3">Subsequent triggers have no effect</p>
28 <p class="p3">When a trigger is received in the reset input, the output is set back to 0.0</p>
29 <p class="p3">One use of this is to have some precipitating event cause something to</p>
30 <p class="p3">happen until you reset it.</p>
31 <p class="p2"><b></b><br></p>
32 <p class="p3"><b>trig</b> - trigger sets output to one</p>
33 <p class="p3"><b>reset</b> - trigger resets output to zero</p>
34 <p class="p2"><br></p>
35 <p class="p4">(</p>
36 <p class="p4">play({</p>
37 <p class="p5"><span class="s1"><span class="Apple-tab-span"> </span>a = </span><span class="s2">Dust</span><span class="s1">.ar(5); </span>// the set trigger</p>
38 <p class="p5"><span class="s1"><span class="Apple-tab-span"> </span>b = </span><span class="s2">Dust</span><span class="s1">.ar(5); </span>// the reset trigger</p>
39 <p class="p4"><span class="Apple-tab-span"> </span><span class="s2">SetResetFF</span>.ar(a,b) * <span class="s2">BrownNoise</span>.ar(0.2);<span class="Apple-converted-space"> </span></p>
40 <p class="p6"><br></p>
41 <p class="p4">})</p>
42 <p class="p4">)</p>
43 </body>
44 </html>