Debian Codegraph @

opcodes/cross2.xml

raw symbols SCIP
1
2 <refentry id="cross2">
3 <indexterm id="IndexCross2"><primary>cross2</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Convolution and Morphing</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>cross2</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>cross2</refname>
13 <refpurpose>
14 Cross synthesis using FFT's.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 This is an implementation of cross synthesis using FFT's.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>cross2</command> ain1, ain2, isize, ioverlap, iwin, kbias</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>isize</emphasis> -- This is the size of the FFT to be performed. The larger the size the better the frequency response but a sloppy time response.
34 </para>
35
36 <para>
37 <emphasis>ioverlap</emphasis> -- This is the overlap factor of the FFT's, must be a power of two. The best settings are 2 and 4. A big overlap takes a long time to compile.
38 </para>
39
40 <para>
41 <emphasis>iwin</emphasis> -- This is the function table that contains the window to be used in the analysis. One can use the <link linkend="GEN20"><citetitle>GEN20</citetitle></link> routine to create this window.
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Performance</title>
47 <para>
48 <emphasis>ain1</emphasis> -- The stimulus sound. Must have high frequencies for best results.
49 </para>
50
51 <para>
52 <emphasis>ain2</emphasis> -- The modulating sound. Must have a moving frequency response (like speech) for best results.
53 </para>
54
55 <para>
56 <emphasis>kbias</emphasis> -- The amount of cross synthesis. 1 is the normal, 0 is no cross synthesis.
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Examples</title>
62 <para>
63 Here is an example of the cross2 opcode. It uses the file <ulink url="examples/cross2.csd"><citetitle>cross2.csd</citetitle></ulink> and <ulink url="examples/fox.wav"><citetitle>fox.wav</citetitle></ulink>.
64 <example>
65 <title>Example of the cross2 opcode.</title>
66 <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>
67 <xi:include href="examples-xml/cross2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
68 </example>
69 </para>
70 </refsect1>
71
72 <refsect1>
73 <title>See also</title>
74 <para><link linkend="SigProcConmorph"><citetitle>Convolution and Morphing</citetitle></link></para>
75 </refsect1>
76
77 <refsect1>
78 <title>Credits</title>
79 <para>
80 <simplelist>
81 <member>Author: &nameparis;</member>
82 <member>MIT, Cambridge</member>
83 <member>1997</member>
84 </simplelist>
85 </para>
86 </refsect1>
87 </refentry>