| 1 | |
| 2 | <refentry id="combinv"> |
| 3 | <indexterm id="IndexCombinv"><primary>combinv</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Reverberation</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>combinv</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>combinv</refname> |
| 13 | <refpurpose> |
| 14 | Reverberates an input signal with a <quote>colored</quote> frequency response. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Reverberates an input signal with a <quote>colored</quote> |
| 22 | frequency response with a FIR filter. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>ares <command>combinv</command> asig, krvt, ilpt [, iskip] [, insmps]</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>ilpt</emphasis> -- loop time in seconds, which |
| 35 | determines the <quote>echo density</quote> of the |
| 36 | reverberation. This in turn characterizes the |
| 37 | <quote>color</quote> of the <emphasis>combinv</emphasis> filter |
| 38 | whose frequency response curve will contain |
| 39 | <emphasis>ilpt</emphasis> * <emphasis>sr</emphasis>/2 peaks |
| 40 | spaced evenly between 0 and <emphasis>sr</emphasis>/2 (the |
| 41 | Nyquist frequency). Loop time can be as large as available |
| 42 | memory will permit. The space required for an |
| 43 | <emphasis>n</emphasis> second loop is |
| 44 | <emphasis>n</emphasis>*<emphasis>sr</emphasis> floating or |
| 45 | double numbers (usually 4 or 8 bytes). Delay space is allocated |
| 46 | and returned as in <link |
| 47 | linkend="delay"><citetitle>delay</citetitle></link>. |
| 48 | </para> |
| 49 | |
| 50 | <para> |
| 51 | <emphasis>iskip</emphasis> (optional, default=0) -- initial disposition of delay-loop data space (cf. <link linkend="reson"><citetitle>reson</citetitle></link>). The default value is 0. |
| 52 | </para> |
| 53 | |
| 54 | <para> |
| 55 | <emphasis>insmps</emphasis> (optional, default=0) -- delay amount, as a number of samples. |
| 56 | </para> |
| 57 | </refsect1> |
| 58 | |
| 59 | <refsect1> |
| 60 | <title>Performance</title> |
| 61 | <para> |
| 62 | <emphasis>krvt</emphasis> -- the reverberation time (defined as the time in seconds for a signal to decay to 1/1000, or 60dB down from its original amplitude). |
| 63 | </para> |
| 64 | |
| 65 | <para> |
| 66 | This filter reiterates input with an echo density determined by |
| 67 | loop time <emphasis>ilpt</emphasis>. The attenuation rate is |
| 68 | independent and is determined by <emphasis>krvt</emphasis>, the |
| 69 | reverberation time (defined as the time in seconds for a signal |
| 70 | to decay to 1/1000, or 60dB down from its original amplitude). Affect from a combinv filter will appear only after <emphasis>ilpt</emphasis> seconds. |
| 71 | </para> |
| 72 | </refsect1> |
| 73 | |
| 74 | <refsect1> |
| 75 | <title>Examples</title> |
| 76 | <para> |
| 77 | Here is an example of the combinv opcode. It uses the file <ulink url="examples/combinv.csd"><citetitle>combinv.csd</citetitle></ulink>. |
| 78 | |
| 79 | <example> |
| 80 | <title>Example of the combinv opcode.</title> |
| 81 | |
| 82 | |
| 83 | |
| 84 | <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> |
| 85 | <xi:include href="examples-xml/combinv.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 86 | </example> |
| 87 | </para> |
| 88 | </refsect1> |
| 89 | |
| 90 | <refsect1> |
| 91 | <title>See also</title> |
| 92 | <para><link linkend="SigmodReverbtn"><citetitle>Reverberation</citetitle></link></para> |
| 93 | </refsect1> |
| 94 | |
| 95 | <refsect1> |
| 96 | <title>Credits</title> |
| 97 | <para> |
| 98 | <simplelist> |
| 99 | <member>Author: &namejohn;</member> |
| 100 | <member>October 2012</member> |
| 101 | </simplelist> |
| 102 | </para> |
| 103 | </refsect1> |
| 104 | </refentry> |