| 1 | |
| 2 | <refentry id="atone"> |
| 3 | <indexterm id="IndexAtone"><primary>atone</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Standard Filters</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>atone</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>atone</refname> |
| 13 | <refpurpose> |
| 14 | A hi-pass filter whose transfer functions are the complements of the <link linkend="tone"><citetitle>tone</citetitle></link> opcode. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | A hi-pass filter whose transfer functions are the complements of the <link linkend="tone"><citetitle>tone</citetitle></link> opcode. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ares <command>atone</command> asig, khp [, iskip]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>iskip</emphasis> (optional, default=0) -- initial disposition of internal data space. Since filtering incorporates a feedback loop of previous output, the initial status of the storage space used is significant. A zero value will clear the space; a non-zero value will allow previous information to remain. The default value is 0. |
| 34 | </para> |
| 35 | </refsect1> |
| 36 | |
| 37 | <refsect1> |
| 38 | <title>Performance</title> |
| 39 | <para> |
| 40 | <emphasis>ares</emphasis> -- the output signal at audio rate. |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | <emphasis>asig</emphasis> -- the input signal at audio rate. |
| 45 | </para> |
| 46 | |
| 47 | <para> |
| 48 | <emphasis>khp</emphasis> -- the response curve's half-power point, in Hertz. Half power is defined as peak power / root 2. |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | <emphasis>atone</emphasis> is a filter whose transfer functions is the complement of <link linkend="tone"><citetitle>tone</citetitle></link>. <emphasis>atone</emphasis> is thus a form of high-pass filter whose transfer functions represent the <quote>filtered out</quote> aspects of their complements. However, power scaling is not normalized in <emphasis>atone</emphasis> but remains the true complement of the corresponding unit. Thus an audio signal, filtered by parallel matching <emphasis>tone</emphasis> and <emphasis>atone</emphasis> units, would under addition simply reconstruct the original spectrum. |
| 53 | </para> |
| 54 | |
| 55 | <para> |
| 56 | This property is particularly useful for controlled mixing of different sources (see <link linkend="lpreson"><citetitle>lpreson</citetitle></link>). Complex response curves such as those with multiple peaks can be obtained by using a bank of suitable filters in series. (The resultant response is the product of the component responses.) In such cases, the combined attenuation may result in a serious loss of signal power, but this can be regained by the use of <link linkend="balance"><citetitle>balance</citetitle></link>. |
| 57 | </para> |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>Examples</title> |
| 62 | <para> |
| 63 | Here is an example of the atone opcode. It uses the file <ulink url="examples/atone.csd"><citetitle>atone.csd</citetitle></ulink>. |
| 64 | |
| 65 | <example> |
| 66 | <title>Example of the atone opcode.</title> |
| 67 | |
| 68 | |
| 69 | |
| 70 | <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> |
| 71 | <xi:include href="examples-xml/atone.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 72 | </example> |
| 73 | </para> |
| 74 | </refsect1> |
| 75 | |
| 76 | <refsect1> |
| 77 | <title>See also</title> |
| 78 | <para><link linkend="SigmodStandard"><citetitle>Standard filters: Hi-pass filters</citetitle></link></para> |
| 79 | </refsect1> |
| 80 | |
| 81 | </refentry> |
| 82 |