Debian Codegraph @

opcodes/mode.xml

raw symbols SCIP
1
2 <refentry id="mode">
3 <indexterm id="IndexMode"><primary>mode</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Standard Filters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>mode</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>mode</refname>
11 <refpurpose>
12 A filter that simulates a mass-spring-damper system
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Filters the incoming signal with the specified resonance frequency and
20 quality factor. It can also be seen as a signal generator for high quality
21 factor, with an impulse for the excitation. You can combine several modes
22 to built complex instruments such as bells or guitar tables.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>aout <command>mode</command> ain, xfreq, xQ [, iskip]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>iskip</emphasis>
35 (optional, default=0) -- if non zero skip the initialisation of the
36 filter.
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 <emphasis>aout</emphasis> -- filtered signal
44 </para>
45
46 <para>
47 <emphasis>ain</emphasis> -- signal to filter
48 </para>
49
50 <para>
51 <emphasis>xfreq</emphasis> -- resonant frequency of the filter
52 <warning>
53 <title>Warning</title>
54 <para>
55 As this filter would become unstable if
56 <emphasis>sr</emphasis>/<emphasis>xfreq</emphasis> &lt; pi,
57 the value of the xfreq is limited to sr/pi-sr/100 internally
58 (e.g <emphasis>xfreq</emphasis> &gt; 13596 Hz @ 44.1
59 kHz). The <emphasis>sr</emphasis>/100 term is because the filter while
60 mathematically stable has a very large amplification as it
61 approaches the unstable region.
62 </para>
63 </warning>
64 </para>
65
66 <para>
67 <emphasis>xQ</emphasis> -- quality factor of the filter
68 </para>
69
70 <para>The resonance time is roughly proportional to <emphasis>xQ</emphasis>/<emphasis>xfreq</emphasis>.</para>
71
72 <para>
73 See <link linkend="MiscModalFreq"><citetitle>Modal Frequency Ratios</citetitle></link> for frequency ratios of real instruments which can be used to determine the values of <emphasis>xfreq</emphasis>.
74 </para>
75 </refsect1>
76
77 <refsect1>
78 <title>Examples</title>
79 <para>
80 Here is an example of the mode opcode. It uses the file <ulink url="examples/mode.csd"><citetitle>mode.csd</citetitle></ulink>.
81 <example>
82 <title>Example of the mode 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/mode.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="SigmodSpeciali"><citetitle>Specialized Filters: Other filters</citetitle></link></para>
92 </refsect1>
93
94 <refsect1>
95 <title>Credits</title>
96 <para>Original UDO and documentation/example by Fran&ccedil;ois Blanc</para>
97 <para>Opcode translation to C-code by Steven Yi</para>
98 <para>New in version 5.04</para>
99 <para>Audio rate parameters introduced in version 6.02</para>
100 <para>November 2013.</para>
101 </refsect1>
102 </refentry>
103