cmake build system: visiblity support for clang
[supercollider.git] / Help / UGens / FFT / IFFT.html
blob85f0a10f2a013b2170d38ae07e956fc9d534bdee
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: 12.0px Helvetica; min-height: 14.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #001bb9}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #ad140d}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
16 span.s1 {font: 18.0px Helvetica}
17 span.s2 {color: #000000}
18 span.s3 {text-decoration: underline ; color: #084eea}
19 span.s4 {text-decoration: underline ; color: #104fd4}
20 span.s5 {color: #001bb9}
21 span.s6 {color: #ad140d}
22 span.s7 {color: #1857d5}
23 span.Apple-tab-span {white-space:pre}
24 </style>
25 </head>
26 <body>
27 <p class="p1"><span class="s1"><b>IFFT<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></span><b>Inverse Fast Fourier Transform</b></p>
28 <p class="p2"><br></p>
29 <p class="p3"><span class="s2"><b>Inherits from: </b><a href="../../Core/Object.html"><b>Object</b></a></span><b> : </b><a href="../../Core/Kernel/AbstractFunction.html"><b>AbstractFunction</b></a><b> : </b><a href="../UGen.html"><b>UGen</b></a><b><span class="Apple-converted-space"> </span></b></p>
30 <p class="p2"><br></p>
31 <p class="p2"><br></p>
32 <p class="p1"><b>IFFT.new(chain, wintype, winsize)</b></p>
33 <p class="p1"><b>IFFT.ar(chain, wintype, winsize)</b></p>
34 <p class="p1"><b>IFFT.kr(chain, wintype, winsize)</b></p>
35 <p class="p2"><br></p>
36 <p class="p2"><br></p>
37 <p class="p1">The fast fourier transform analyzes the frequency content of a signal. The IFFT UGen converts this <i>frequency-domain</i> information back into <i>time-domain</i> audio data. Most often this is used as the end of a process which begins with FFT, followed by frequency-domain processing using PV (phase-vocoder) UGens, followed by IFFT.</p>
38 <p class="p2"><br></p>
39 <p class="p1"><b>chain</b> - The FFT "chain" signal coming originally from an FFT UGen, perhaps via other PV UGens.</p>
40 <p class="p1"><b>wintype</b> - defines how the data is windowed:</p>
41 <p class="p1"><span class="Apple-tab-span"> </span>-1 is for <b><i>rectangular</i></b> windowing, simple but typically not recommended;<span class="Apple-converted-space"> </span></p>
42 <p class="p1"><span class="Apple-tab-span"> </span>0 (the default) is for <b><i>Sine</i></b> windowing, typically recommended for phase-vocoder work;<span class="Apple-converted-space"> </span></p>
43 <p class="p1"><span class="Apple-tab-span"> </span>1 is for <b><i>Hann</i></b> windowing, typically recommended for analysis work.</p>
44 <p class="p1"><b>winsize</b> - can be used to account for zero-padding, in the same way as the FFT UGen.</p>
45 <p class="p2"><br></p>
46 <p class="p1">The IFFT UGen converts the FFT data in-place (in the original FFT buffer) and overlap-adds the result to produce a continuous signal at its output.</p>
47 <p class="p2"><br></p>
48 <p class="p1"><b>See also:</b> <a href="FFT Overview.html"><span class="s3">FFT Overview</span></a>, <a href="FFT.html"><span class="s4">FFT</span></a>, <a href="PV_Copy.html"><span class="s4">PV_Copy</span></a></p>
49 <p class="p4"><br></p>
50 <p class="p4"><br></p>
51 <p class="p4"><br></p>
52 <p class="p5">// example</p>
53 <p class="p6">(</p>
54 <p class="p6">{ <span class="s5">var</span> in, chain;</p>
55 <p class="p6"><span class="Apple-tab-span"> </span>in = <span class="s5">WhiteNoise</span>.ar(0.05);</p>
56 <p class="p6"><span class="Apple-tab-span"> </span>chain = <span class="s5">FFT</span>(<span class="s5">LocalBuf</span>(2048), in);</p>
57 <p class="p6"><span class="Apple-tab-span"> </span>chain.inspect; <span class="s6">// its an FFT</span></p>
58 <p class="p6"><span class="Apple-tab-span"> </span><span class="s5">Out</span>.ar(0,<span class="Apple-converted-space"> </span></p>
59 <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><span class="s5">IFFT</span><span class="s2">(chain) </span>// inverse FFT</p>
60 <p class="p6"><span class="Apple-tab-span"> </span>);</p>
61 <p class="p6">}.play</p>
62 <p class="p6">)</p>
63 <p class="p4"><br></p>
64 <p class="p1">See <a href="FFT.html"><span class="s7">FFT</span></a> for more examples.</p>
65 <p class="p2"><br></p>
66 </body>
67 </html>