Debian Codegraph @

opcodes/allpole.xml

raw symbols SCIP
1
2 <refentry id="allpole">
3 <indexterm id="IndexAllpole"><primary>allpole</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:LPC</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>allpole</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>allpole</refname>
11 <refpurpose>
12 Allpole filter implementation using direct convolution.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 This opcode implements an allpole filter using direct
20 convolution.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>ares <command>allpole</command> asig, kCoef[]</synopsis>
27
28 </refsect1>
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 <emphasis>kCoef[]</emphasis> -- all-pole filter coefficients
34 (iord-size array)
35 </para>
36 <para>
37 <emphasis>asig</emphasis> -- audio input
38 </para>
39
40 <para>
41 <emphasis>ares</emphasis> -- audio output
42 </para>
43
44 </refsect1>
45
46 <refsect1>
47 <para>
48 This opcode is part of a suite of streaming linear prediction
49 opcodes. It implements an allpole filter using coefficients
50 passed to it via a k-rate array. The filter length is
51 determined by the array size
52 </para>
53
54 <para>
55 The typical application is compute the coefficients via some
56 method and then pass these to the opcode. The set of
57 coefficients passed to allpole need to implement a stable
58 filter, since this is an IIR filter and stability is not
59 guaranteed by default.
60 </para>
61
62 <para>
63 The most common method of coefficient derivation is linear
64 prediction analysis, produced for instance by lpcanal. Other
65 methods may be employed, including direct calculation of
66 coefficients from a known filter recipe (e.g. resonators etc).
67 </para>
68
69
70 </refsect1>
71
72 <refsect1>
73 <title>Examples</title>
74 <para>
75 Here is an example of the allpole opcode using an audio input
76 signal as lpc source. It uses the file <ulink url="examples/allpole.csd"><citetitle>allpole.csd</citetitle></ulink>.
77 <example>
78 <title>Example of the allpole opcode.</title>
79 <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>
80 <xi:include href="examples-xml/allpole.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
81 </example>
82 </para>
83 <para>
84 Here is another example of the allpole opcode, now using a
85 function table as lpc source. It uses the file <ulink url="examples/allpole-2.csd"><citetitle>allpole-2.csd</citetitle></ulink>.
86 <example>
87 <title>Another example of the allpole opcode.</title>
88 <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>
89 <xi:include href="examples-xml/allpole-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
90 </example>
91 </para>
92 </refsect1>
93
94 <refsect1>
95 <title>See also</title>
96 <para><link linkend="SpectralLpcresyn"><citetitle>Streaming Linear Predictive Coding (SLPC) Resynthesis</citetitle></link></para>
97 </refsect1>
98
99 </refentry>