Debian Codegraph @

opcodes/dispfft.xml

raw symbols SCIP
1
2 <refentry id="dispfft">
3 <indexterm id="IndexDispfft"><primary>dispfft</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Printing and Display</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>dispfft</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>displayfft</refname>
11 <refpurpose>
12 Displays the Fourier Transform of an audio or control signal.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 These units will print orchestra init-values, or produce graphic display of orchestra control signals and audio signals. Uses X11 windows if enabled, else (or if <link linkend="FlagsMinusLowerG"><citetitle>-g</citetitle></link> flag is set) displays are approximated in ASCII characters.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>dispfft</command> xsig, iprd, iwsiz [, iwtyp] [, idbout] [, iwtflg] [,imin] [,imax]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>iprd</emphasis> -- the period of display in seconds.
32 </para>
33
34 <para>
35 <emphasis>iwsiz</emphasis> -- size of the input window in samples. A window of <emphasis>iwsiz</emphasis> points will produce a Fourier transform of <emphasis>iwsiz</emphasis>/2 points, spread linearly in frequency from 0 to sr/2. <emphasis>iwsiz</emphasis> must be a power of 2, with a minimum of 16 and a maximum of 4096. The windows are permitted to overlap.
36 </para>
37
38 <para>
39 <emphasis>iwtyp</emphasis> (optional, default=0) -- window type. 0 = rectangular, 1 = Hanning. The default value is 0 (rectangular).
40 </para>
41
42 <para>
43 <emphasis>idbout</emphasis> (optional, default=0) -- units of output for the Fourier coefficients. 0 = magnitude, 1 = decibels. The default is 0 (magnitude).
44 </para>
45
46 <para>
47 <emphasis>iwtflg</emphasis> (optional, default=0) -- wait flag. If non-zero, each display is held until released by the user. The default value is 0 (no wait).
48 </para>
49
50 <para>
51 <emphasis>imin</emphasis> (optional, default=0) -- minimum FFT bin used in display.
52 </para>
53 <para>
54 <emphasis>imax</emphasis> (optional, default=winsize/2) -- maximum FFT bin to be used in display.
55 </para>
56
57 </refsect1>
58
59 <refsect1>
60 <title>Performance</title>
61 <para>
62 <emphasis>dispfft</emphasis> -- displays the Fourier Transform of an audio or control signal (<emphasis>asig</emphasis> or <emphasis>ksig</emphasis>) every <emphasis>iprd</emphasis> seconds using the Fast Fourier Transform method.
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>Examples</title>
68 <para>
69 Here is an example of the dispfft opcode. It uses the file <ulink url="examples/dispfft.csd"><citetitle>dispfft.csd</citetitle></ulink>.
70 <example>
71 <title>Example of the dispfft opcode.</title>
72 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
73 <xi:include href="examples-xml/dispfft.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
74 </example>
75 </para>
76 </refsect1>
77
78 <refsect1>
79 <title>See also</title>
80 <para><link linkend="SigioPdisplay"><citetitle>Printing and Display</citetitle></link></para>
81 </refsect1>
82 </refentry>