| 1 | |
| 2 | <refentry id="freeverb"> |
| 3 | <indexterm id="IndexFreeverb"><primary>freeverb</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Reverberation</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>freeverb</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>freeverb</refname> |
| 13 | <refpurpose> |
| 14 | Opcode version of Jezar's Freeverb |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | freeverb is a stereo reverb unit based on Jezar's public domain |
| 22 | C++ sources, composed of eight parallel comb filters on both |
| 23 | channels, followed by four allpass units in series. The filters |
| 24 | on the right channel are slightly detuned compared to the left |
| 25 | channel in order to create a stereo effect. |
| 26 | </para> |
| 27 | |
| 28 | |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Syntax</title> |
| 33 | <synopsis>aoutL, aoutR <command>freeverb</command> ainL, ainR, kRoomSize, kHFDamp[, iSRate[, iSkip]] </synopsis> |
| 34 | </refsect1> |
| 35 | |
| 36 | <refsect1> |
| 37 | <title>Initialization</title> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>iSRate</emphasis> |
| 41 | (optional, defaults to 44100): adjusts the reverb parameters for |
| 42 | use with the specified sample rate (this will affect the length of |
| 43 | the delay lines in samples, and, as of the latest CVS version, the |
| 44 | high frequency attenuation). Only integer multiples of 44100 will |
| 45 | reproduce the original character of the reverb exactly, so it may |
| 46 | be useful to set this to 44100 or 88200 for an orchestra sample |
| 47 | rate of 48000 or 96000 Hz, respectively. While iSRate is normally |
| 48 | expected to be close to the orchestra sample rate, different |
| 49 | settings may be useful for special effects. |
| 50 | </para> |
| 51 | |
| 52 | <para> |
| 53 | <emphasis>iSkip</emphasis> |
| 54 | (optional, defaults to zero): if non-zero, initialization of the |
| 55 | opcode will be skipped, whenever possible. |
| 56 | </para> |
| 57 | |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>Performance</title> |
| 62 | <para> |
| 63 | <emphasis>ainL, ainR</emphasis> |
| 64 | -- input signals; usually both are the same, but different |
| 65 | inputs can be used for special effect |
| 66 | |
| 67 | <note> |
| 68 | <title>Note</title> |
| 69 | <para>It is recommended to process the input signal(s) with the |
| 70 | denorm opcode in order to avoid denormalized numbers which could |
| 71 | significantly increase CPU usage in some cases |
| 72 | </para> |
| 73 | </note> |
| 74 | |
| 75 | </para> |
| 76 | |
| 77 | <para> |
| 78 | <emphasis>aoutL, aoutR</emphasis> |
| 79 | -- output signals for left and right channel |
| 80 | </para> |
| 81 | |
| 82 | <para> |
| 83 | <emphasis>kRoomSize</emphasis> |
| 84 | (range: 0 to 1) -- controls the length of the reverb, a higher |
| 85 | value means longer reverb. Settings above 1 may make the opcode |
| 86 | unstable. |
| 87 | </para> |
| 88 | |
| 89 | <para> |
| 90 | <emphasis>kHFDamp</emphasis> |
| 91 | (range: 0 to 1): high frequency attenuation; a value of zero |
| 92 | means all frequencies decay at the same rate, while higher settings |
| 93 | will result in a faster decay of the high frequency range. |
| 94 | </para> |
| 95 | </refsect1> |
| 96 | |
| 97 | <refsect1> |
| 98 | <title>Examples</title> |
| 99 | <para> |
| 100 | Here is an example of the <emphasis>freeverb</emphasis> opcode. It uses the file <ulink url="examples/freeverb.csd"><citetitle>freeverb.csd</citetitle></ulink>. |
| 101 | <example> |
| 102 | <title>An example of the freeverb opcode.</title> |
| 103 | |
| 104 | <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> |
| 105 | <xi:include href="examples-xml/freeverb.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 106 | </example> |
| 107 | </para> |
| 108 | </refsect1> |
| 109 | |
| 110 | <refsect1> |
| 111 | <title>See also</title> |
| 112 | <para><link linkend="SigmodReverbtn"><citetitle>Reverberation</citetitle></link></para> |
| 113 | </refsect1> |
| 114 | |
| 115 | <refsect1> |
| 116 | <title>Credits</title> |
| 117 | <para> |
| 118 | <simplelist> |
| 119 | <member>Author: Istvan Varga</member> |
| 120 | <member>2005</member> |
| 121 | </simplelist> |
| 122 | </para> |
| 123 | </refsect1> |
| 124 | </refentry> |