Debian Codegraph @

opcodes/resonbnk.xml

raw symbols SCIP
1
2 <refentry id="resonbnk">
3 <indexterm id="IndexResonbnk"><primary>resonbnk</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:LPC</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>resonbnk</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>resonbnk</refname>
11 <refpurpose>
12 A resonator filter bank.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 This opcode takes an array of filter paramerers in
20 frequency-bandwidth pairs and constructs a bank of second-order
21 resonators, in either parallel or serial connections.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>asig <command>resonbnk</command> ain, kPar[], kmin, kmax, iper [, imode, iscal, iskip]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>iper</emphasis> -- filter parameter interpolation period (in samples).
34 </para>
35 <para>
36 <emphasis>imode</emphasis> -- filter connection mode (0 = serial, 1 = parallel, defaults to 1).
37 </para>
38 <para>
39 <emphasis>iscal</emphasis> -- filter scaling mode (0 = no scaling, 1 and 2 modes as in reson, defaults to 0).
40 </para>
41 <para>
42 <emphasis>iskip</emphasis> -- skip initialisation if non-zero (defaults to 0).
43 </para>
44 </refsect1>
45
46 <refsect1>
47 <title>Performance</title>
48 <para>
49 <emphasis>asig</emphasis> -- output signal
50 </para>
51 <para>
52 <emphasis>ain</emphasis> -- input signal
53 </para>
54 <para>
55 <emphasis>kPar[]</emphasis> -- filter parameters in freq-bandwidth pairs.
56 </para>
57 <para>
58 <emphasis>kmin</emphasis> -- minimum filter frequency.
59 </para>
60 <para>
61 <emphasis>kmax</emphasis> -- maximum filter frequency.
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <para>
67 This opcode is part of a suite of streaming linear prediction
68 opcodes. It takes in an array of filter parameters in
69 frequency/bandwidth pairs and creates a bank of filters.
70 The minimum and maximum filter
71 frequencies used in the filterbank are set by kmin and kmax, and any filters
72 whose frequencies are outside this range are excluded from
73 the filterbank. Filter coefficients are computed every iper
74 samples and linearly interpolated throughout.
75 </para>
76 </refsect1>
77
78 <refsect1>
79 <title>Examples</title>
80 <para>
81 Here is an example of the resonbnk opcode using an audio input
82 signal as lpc source. It uses the file <ulink url="examples/resonbnk.csd"><citetitle>resonbnk.csd</citetitle></ulink>.
83 <example>
84 <title>Example of the resonbnk opcode.</title>
85 <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>
86 <xi:include href="examples-xml/resonbnk.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
87 </example>
88 </para>
89 </refsect1>
90
91 <refsect1>
92 <title>See also</title>
93 <para><link linkend="SpectralLpcresyn"><citetitle>Streaming Linear Predictive Coding (SLPC) Resynthesis</citetitle></link></para>
94 </refsect1>
95 </refentry>