| 1 | |
| 2 | <refentry id="apoleparams"> |
| 3 | <indexterm id="IndexApoleparams"><primary>apoleparams</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:LPC</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>apoleparams</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>apoleparams</refname> |
| 11 | <refpurpose> |
| 12 | Extracts allpole filter parameters from coefficients. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | This opcode takes an array of allpole filter coefficients and |
| 20 | produces an array of allpole filter parameters as frequency and |
| 21 | bandwidth pairs. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>kPar[]<command>apoleparams</command> kCoef[] </synopsis> |
| 28 | |
| 29 | |
| 30 | </refsect1> |
| 31 | > |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Performance</title> |
| 35 | <para> |
| 36 | <emphasis>kCoef[]</emphasis> -- all-pole filter coefficients |
| 37 | (iord-size array) |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>kPar[]</emphasis> - filter parameters in freq-bandwidth pairs. |
| 42 | </para> |
| 43 | |
| 44 | </refsect1> |
| 45 | <refsect1> |
| 46 | <para> |
| 47 | This opcode is part of a suite of streaming linear prediction |
| 48 | opcodes. It takes in an array of allpole filter parameters, |
| 49 | converts these to filter poles, sorts these in ascending |
| 50 | frequency order, and then outputs these as frequency-bandwidth |
| 51 | pairs. Poles at 0Hz and Nyquist frequencies are excluded, and |
| 52 | each pole conjugate pair is represented by a single pair of |
| 53 | parameters. For a filter of order M, M coefficients are |
| 54 | transformed into M/2 pairs of frequencies and bandwidths. |
| 55 | </para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>Examples</title> |
| 60 | <para> |
| 61 | Here is an example of the apoleparams opcode using an audio input |
| 62 | signal as lpc source. It uses the file <ulink url="examples/apoleparams.csd"><citetitle>apoleparams.csd</citetitle></ulink>. |
| 63 | <example> |
| 64 | <title>Example of the apoleparams opcode.</title> |
| 65 | <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> |
| 66 | <xi:include href="examples-xml/apoleparams.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 67 | </example> |
| 68 | </para> |
| 69 | </refsect1> |
| 70 | |
| 71 | <refsect1> |
| 72 | <title>See also</title> |
| 73 | <para><link linkend="SpectralLpcresyn"><citetitle>Streaming Linear Predictive Coding (SLPC) Resynthesis</citetitle></link></para> |
| 74 | </refsect1> |
| 75 | |
| 76 | </refentry> |