Debian Codegraph @

opcodes/tvconv.xml

raw symbols SCIP
1
2 <refentry id="tvconv">
3 <indexterm id="IndexTvconv"><primary>tvconv</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Convolution and Morphing</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>tvconv</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>tvconv</refname>
11 <refpurpose>
12 A time-varying convolution (FIR filter) opcode.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 An opcode that takes two incoming signals and
20 interprets one of them as the coefficients of linear
21 time-variable finite impulse response filter. This is
22 implemented via direct convolution (for partition sizes of
23 1 sample) or DFT-based partitioned convolution.
24 The signals can be 'frozen' (i.e. the filter coefficients are
25 kept the same) at any point in time, at a-rate or k-rate.
26 </para>
27 </refsect1>
28
29 <refsect1>
30 <title>Syntax</title>
31 <synopsis>ares <command>tvconv</command> asig1, asig2, xfreez1,
32 xfreez2, iparts, ifils</synopsis>
33 </refsect1>
34
35 <refsect1>
36 <title>Initialization</title>
37 <para>
38 <emphasis>iparts</emphasis> -- partition size, for sizes > 1, a
39 DFT-based partitioned convolution process is used. Otherwise a
40 time-domain delay line FIR is implemented. Partition sizes > 1
41 are rounded to the nearest power-of-two.
42 </para>
43
44 <para>
45 <emphasis>ifils</emphasis> -- filter size. For partition sizes >
46 1, filter sizes are rounded to the nearest power-of-two. With
47 partition size = 1, since direct convolution is used, filters
48 can be of any size.
49 </para>
50 </refsect1>
51
52 <refsect1>
53 <title>Performance</title>
54 <para>
55 <emphasis>ares</emphasis> -- audio output.
56 </para>
57
58 <para>
59 <emphasis>asig1, asig2</emphasis> -- audio inputs.
60 </para>
61
62 <para>
63 <emphasis>xfreez1</emphasis> -- freeze switch for
64 asig1. Coefficients are only updated (ie. the signal is passing
65 into the convolution) if xfreez1 > 0. This input can take an
66 audio or a k-rate signal, or a constant.
67 </para>
68
69 <para>
70 <emphasis>xfreez2</emphasis> -- freeze switch for
71 asig2, similar to xfreez1 in operation.
72 </para>
73
74 </refsect1>
75
76 <refsect1>
77 <title>Examples</title>
78 <para>
79 Here is an example of the tvconv opcode. It uses the file <ulink url="examples/tvconv.csd"><citetitle>tvconv.csd</citetitle></ulink>.
80
81 <example>
82 <title>Example of the tvconv opcode.</title>
83 <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>
84 <xi:include href="examples-xml/tvconv.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
85 </example>
86 </para>
87 </refsect1>
88
89 <refsect1>
90 <title>See also</title>
91 <para><link linkend="SigProcConmorph"><citetitle>Convolution and Morphing</citetitle></link></para>
92 </refsect1>
93
94 <refsect1>
95 <title>Credits</title>
96 <para>
97 <simplelist>
98 <member>Author: Victor Lazzarini </member>
99 <member>2017</member>
100 </simplelist>
101 </para>
102
103 <para>New in version 6.09</para>
104 </refsect1>
105 </refentry>