| 1 | |
| 2 | <refentry id="nreverb"> |
| 3 | <indexterm id="IndexNreverb"><primary>nreverb</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Reverberation</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>nreverb</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>nreverb</refname> |
| 13 | <refpurpose> |
| 14 | A reverberator consisting of 6 parallel comb-lowpass filters. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | This is a reverberator consisting of 6 parallel comb-lowpass filters being fed into a series of 5 allpass filters. <emphasis>nreverb</emphasis> replaces <link linkend="reverb2"><citetitle>reverb2</citetitle></link> (version 3.48) and so both opcodes are identical. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ares <command>nreverb</command> asig, ktime, khdif [, iskip] [,inumCombs] [, ifnCombs] \ |
| 28 | [, inumAlpas] [, ifnAlpas]</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>iskip</emphasis> (optional, default=0) -- Skip initialization if present and non-zero. |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>inumCombs</emphasis> (optional) -- number of filter constants in comb filter. If omitted, the values default to the nreverb constants. New in Csound version 4.09. |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>ifnCombs</emphasis> - function table with <emphasis>inumCombs</emphasis> comb filter time values, followed the same number of gain values. The ftable should not be rescaled (use negative fgen number). Positive time values are in seconds. The time values are converted internally into number of samples, then set to the next greater prime number. If the time is negative, it is interpreted directly as time in sample frames, and no processing is done (except negation). New in Csound version 4.09. |
| 43 | </para> |
| 44 | |
| 45 | <para> |
| 46 | <emphasis>inumAlpas</emphasis>, <emphasis>ifnAlpas</emphasis> (optional) -- same as <emphasis>inumCombs/ifnCombs</emphasis>, for allpass filter. New in Csound 4.09. |
| 47 | </para> |
| 48 | </refsect1> |
| 49 | |
| 50 | <refsect1> |
| 51 | <title>Performance</title> |
| 52 | <para> |
| 53 | The input signal asig is reverberated for <emphasis>ktime</emphasis> seconds. The parameter <emphasis>khdif</emphasis> controls the high frequency diffusion amount. The values of <emphasis>khdif</emphasis> should be from 0 to 1. If <emphasis>khdif</emphasis> is set to 0 the all the frequencies decay with the same speed. If <emphasis>khdif</emphasis> is 1, high frequencies decay faster than lower ones. If <emphasis>ktime</emphasis> is inadvertently set to a non-positive number, <emphasis>ktime</emphasis> will be reset automatically to 0.01. (New in Csound version 4.07.) |
| 54 | </para> |
| 55 | |
| 56 | <para> |
| 57 | As of Csound version 4.09, <emphasis>nreverb</emphasis> may read any number of comb and allpass filter from an ftable. |
| 58 | </para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Examples</title> |
| 63 | <para> |
| 64 | Here is a simple example of the nreverb opcode. It uses the file <ulink url="examples/nreverb.csd"><citetitle>nreverb.csd</citetitle></ulink>. |
| 65 | |
| 66 | <example> |
| 67 | <title>Simple example of the nreverb opcode.</title> |
| 68 | |
| 69 | |
| 70 | |
| 71 | <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> |
| 72 | <xi:include href="examples-xml/nreverb.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 73 | </example> |
| 74 | </para> |
| 75 | |
| 76 | <para> |
| 77 | Here is an example of the nreverb opcode using an ftable for filter constants. It uses the file <ulink url="examples/nreverb_ftable.csd"><citetitle>nreverb_ftable.csd</citetitle></ulink>, and <ulink url="examples/drumsMlp.wav"><citetitle>drumsMlp.wav</citetitle></ulink>. |
| 78 | <example> |
| 79 | <title>An example of the nreverb opcode using an ftable for filter constants.</title> |
| 80 | <xi:include href="examples-xml/nreverb_ftable.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 81 | </example> |
| 82 | </para> |
| 83 | </refsect1> |
| 84 | |
| 85 | <refsect1> |
| 86 | <title>See also</title> |
| 87 | <para><link linkend="SigmodReverbtn"><citetitle>Reverberation</citetitle></link></para> |
| 88 | </refsect1> |
| 89 | |
| 90 | <refsect1> |
| 91 | <title>Credits</title> |
| 92 | <para> |
| 93 | <simplelist> |
| 94 | <member>Authors: &nameparis; (<emphasis>reverb2</emphasis>)</member> |
| 95 | <member>MIT, Cambridge</member> |
| 96 | <member>1995</member> |
| 97 | </simplelist> |
| 98 | </para> |
| 99 | |
| 100 | <para> |
| 101 | <simplelist> |
| 102 | <member>Author: Richard Karpen (<emphasis>nreverb</emphasis>)</member> |
| 103 | <member>Seattle, Wash</member> |
| 104 | <member>1998</member> |
| 105 | </simplelist> |
| 106 | </para> |
| 107 | </refsect1> |
| 108 | </refentry> |