supernova: fix boost.thread move semantics
[supercollider.git] / Help / UGens / Info / SampleDur.html
blobfd2dd72f465c342f9c9ff8be45782d2aaf07af48
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: 9.0px Monaco; min-height: 12.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #982316; min-height: 12.0px}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #bf0000; min-height: 12.0px}
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: #000000; min-height: 12.0px}
17 p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000}
18 p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
19 span.s1 {font: 18.0px Helvetica}
20 span.s2 {font: 9.0px Monaco}
21 span.s3 {color: #0000ff}
22 span.s4 {color: #0000bf}
23 span.Apple-tab-span {white-space:pre}
24 </style>
25 </head>
26 <body>
27 <p class="p1"><span class="s1"><b>SampleDur</b></span><span class="s2"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><b>duration of one<span class="Apple-converted-space">  </span>sample<span class="Apple-converted-space"> </span></b></p>
28 <p class="p2"><br></p>
29 <p class="p1">superclass: InfoUGenBase</p>
30 <p class="p3"><br></p>
31 <p class="p1">returns the current sample duration of the server in seconds</p>
32 <p class="p3"><br></p>
33 <p class="p1"><b><span class="Apple-tab-span"> </span>*ir</b></p>
34 <p class="p3"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b><span class="s2"><span class="Apple-tab-span"> </span></span></p>
35 <p class="p4"><br></p>
36 <p class="p1">equivalent to<span class="Apple-converted-space">  </span>1 / <a href="SampleRate.html"><span class="s3">SampleRate</span></a></p>
37 <p class="p3"><br></p>
38 <p class="p1">related: <b>minNyquist</b></p>
39 <p class="p3"><br></p>
40 <p class="p5"><br></p>
41 <p class="p6">// examples</p>
42 <p class="p7"><br></p>
43 <p class="p8">{ <span class="s4">SampleDur</span>.ir.poll }.play;</p>
44 <p class="p9">{ (1/<span class="s4">SampleDur</span>.ir).poll }.play;</p>
45 <p class="p2"><br></p>
46 <p class="p6">// drive a demand ugen at samplerate</p>
47 <p class="p7"><br></p>
48 <p class="p8">{ <span class="s4">Duty</span>.ar(<span class="s4">SampleDur</span>.ir, 0, <span class="s4">Dbrown</span>(-1.0, 1.0, 0.01, <span class="s4">inf</span>)) * 0.1 }.play</p>
49 </body>
50 </html>