| 1 | |
| 2 | <refentry id="moogvcf2"> |
| 3 | <indexterm id="IndexMoogvcf2"><primary>moogvcf2</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Standard Filters:Resonant</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>moogvcf2</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>moogvcf2</refname> |
| 11 | <refpurpose> |
| 12 | A digital emulation of the Moog diode ladder filter configuration. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | A digital emulation of the Moog diode ladder filter configuration. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>ares <command>moogvcf2</command> asig, xfco, xres [,iscale, iskip]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>iscale</emphasis> (optional, default=0dBfs) -- internal |
| 32 | scaling factor, as the operation of the code requires the signal |
| 33 | to be in the range +/-1. Input is first divided by |
| 34 | <emphasis>iscale</emphasis>, then output is mutliplied by |
| 35 | <emphasis>iscale</emphasis>. |
| 36 | </para> |
| 37 | <para> |
| 38 | <emphasis>iskip</emphasis> (optional, default=0) -- if non zero |
| 39 | skip the initialisation of the filter. |
| 40 | </para> |
| 41 | </refsect1> |
| 42 | |
| 43 | <refsect1> |
| 44 | <title>Performance</title> |
| 45 | <para> |
| 46 | <emphasis>asig</emphasis> -- input signal |
| 47 | </para> |
| 48 | |
| 49 | <para> |
| 50 | <emphasis>xfco</emphasis> -- filter cut-off frequency in |
| 51 | Hz. which may be i-,k-, or a-rate. |
| 52 | </para> |
| 53 | |
| 54 | <para> |
| 55 | <emphasis>xres</emphasis> -- amount of |
| 56 | resonance. Self-oscillation occurs when <emphasis>xres</emphasis> |
| 57 | is approximately one. May be a-rate, i-rate, or k-rate. |
| 58 | </para> |
| 59 | |
| 60 | <para> |
| 61 | <emphasis>moogvcf2</emphasis> is a digital emulation of the Moog |
| 62 | diode ladder filter configuration. This emulation is based loosely |
| 63 | on the paper <quote>Analyzing the Moog VCF with Considerations for |
| 64 | Digital Implementation</quote> by Stilson and Smith (CCRMA). This |
| 65 | version was originally coded in Csound by Josep Comajuncosas. Some |
| 66 | modifications and conversion to C were done by &namehans; and then |
| 67 | adjusted. |
| 68 | </para> |
| 69 | <para> |
| 70 | <emphasis>moogvcf2</emphasis> is identical to <link linkend="moogvcf"><citetitle>moogvcf</citetitle></link>, except that the |
| 71 | <emphasis>iscale</emphasis> parameter defaults to <link linkend="Zerodbfs"><citetitle>0dbfs</citetitle></link> instead of 0, guaranteeing that amplitude will usually be OK. |
| 72 | </para> |
| 73 | |
| 74 | </refsect1> |
| 75 | |
| 76 | <refsect1> |
| 77 | <title>Examples</title> |
| 78 | <para> |
| 79 | Here is an example of the moogvcf2 opcode. It uses the file <ulink url="examples/moogvcf2.csd"><citetitle>moogvcf2.csd</citetitle></ulink>. |
| 80 | <example> |
| 81 | <title>Example of the moogvcf2 opcode.</title> |
| 82 | <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> |
| 83 | <xi:include href="examples-xml/moogvcf2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 84 | </example> |
| 85 | </para> |
| 86 | </refsect1> |
| 87 | |
| 88 | <refsect1> |
| 89 | <title>See also</title> |
| 90 | <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Resonant Low-pass filters</citetitle></link></para> |
| 91 | </refsect1> |
| 92 | |
| 93 | <refsect1> |
| 94 | <title>Credits</title> |
| 95 | <para> |
| 96 | <simplelist> |
| 97 | <member>Author: &namehans; and &namejohn;</member> |
| 98 | <member>October 1998/ July 2006</member> |
| 99 | </simplelist> |
| 100 | </para> |
| 101 | |
| 102 | <para>New in Csound version 5.03</para> |
| 103 | </refsect1> |
| 104 | </refentry> |