Debian Codegraph @

opcodes/spf.xml

raw symbols SCIP
1
2 <refentry id="spf">
3 <indexterm id="IndexSpf"><primary>spf</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters:Resonant</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>spf</refentrytitle>
7 </refmeta>
8 <refnamediv>
9 <refname>spf</refname>
10 <refpurpose>
11 Steiner-Parker filter.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 Spf is an digital implementation of a linear Steiner-Parker
19 analogue filter, which is a second-order multimode filter with three separate
20 inputs for lowpass, highpass, and bandpass and one output.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>asig <command>spf</command> alp,ahp,abp, xcf, xR[, istor]</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>istor</emphasis> --initial disposition of internal
33 data space. Since filtering incorporates a feedback loop of
34 previous output, the initial status of the storage space used is
35 significant. A zero value will clear the space; a non-zero
36 value will allow previous information to remain. The default
37 value is 0.
38 </para>
39 </refsect1>
40
41 <refsect1>
42 <title>Performance</title>
43 <para>
44 <emphasis>alp, ahp, abp</emphasis> -- lowpass, highpass and
45 bandpass input signals. Different signals can be used as inputs;
46 if the same signal is placed at the lowpass and highpass
47 inputs, the result is a band-reject output for that signal. If
48 the same signal is used for all inputs, an allpass filter results.
49 </para>
50 <para>
51 <emphasis>xcf</emphasis> -- filter
52 cutoff frequency (a- or k-rate)
53 </para>
54
55 <para>
56 <emphasis>xR</emphasis> -- filter damping factor, which
57 controls peaking (for bandpass, R = 1/Q, where Q is the ratio of centre
58 frequency and bandwidth). A value of sqrt(2) (approx 1.414)
59 gives no peaking (Butterworth response), and lower values will
60 make the filter peak and ring. A value of 0 turns the
61 filter into a sinusoidal oscillator. Valid values in the range
62 of 0 - 2. At 2, the filter has real poles and so it is
63 equivalent to two first-order filters in series.
64 </para>
65 </refsect1>
66 <refsect1>
67 <title>Examples</title>
68 <para>
69 Here is an example of the spf opcode. It uses the file <ulink url="examples/spf.csd"><citetitle>spf.csd</citetitle></ulink>.
70 <example>
71 <title>Example of the spf opcode.</title>
72 <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>
73 <xi:include href="examples-xml/spf.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
74 </example>
75 </para>
76 </refsect1>
77
78 <refsect1>
79 <title>See also</title>
80 <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Resonant Low-pass filters</citetitle></link></para>
81 </refsect1>
82
83 <refsect1>
84 <title>Credits</title>
85 <para>
86 <simplelist>
87 <member>Author: &namevictor;</member>
88 <member>Feb 2021</member>
89 </simplelist>
90 </para>
91 </refsect1>
92 </refentry>