| 1 |
|
| 2 |
<refentry id="alpass"> |
| 3 |
<indexterm id="IndexAlpass"><primary>alpass</primary></indexterm> |
| 4 |
<refentryinfo><title>Signal Modifiers:Reverberation</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>alpass</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
<refnamediv> |
| 12 |
<refname>alpass</refname> |
| 13 |
<refpurpose> |
| 14 |
Reverberates an input signal with a flat frequency response. |
| 15 |
</refpurpose> |
| 16 |
</refnamediv> |
| 17 |
|
| 18 |
<refsect1> |
| 19 |
<title>Description</title> |
| 20 |
<para> |
| 21 |
Reverberates an input signal with a flat frequency response. |
| 22 |
</para> |
| 23 |
</refsect1> |
| 24 |
|
| 25 |
<refsect1> |
| 26 |
<title>Syntax</title> |
| 27 |
<synopsis>ares <command>alpass</command> asig, xrvt, ilpt [, iskip] [, insmps]</synopsis> |
| 28 |
</refsect1> |
| 29 |
|
| 30 |
<refsect1> |
| 31 |
<title>Initialization</title> |
| 32 |
<para> |
| 33 |
<emphasis>ilpt</emphasis> -- loop time in seconds, which determines the <quote>echo density</quote> of the reverberation. This in turn characterizes the <quote>color</quote> of the filter whose frequency response curve will contain <emphasis>ilpt</emphasis> * <emphasis>sr</emphasis>/2 peaks spaced evenly between 0 and <emphasis>sr</emphasis>/2 (the Nyquist frequency). Loop time can be as large as available memory will permit. The space required for an <emphasis>n</emphasis> second loop is 4<emphasis>n</emphasis>*<emphasis>sr</emphasis> bytes. The delay space is allocated and returned as in <link linkend="delay"><citetitle>delay</citetitle></link>. |
| 34 |
</para> |
| 35 |
|
| 36 |
<para> |
| 37 |
<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. |
| 38 |
</para> |
| 39 |
|
| 40 |
<para> |
| 41 |
<emphasis>insmps</emphasis> (optional, default=0) -- delay amount, as a number of samples. |
| 42 |
</para> |
| 43 |
</refsect1> |
| 44 |
|
| 45 |
<refsect1> |
| 46 |
<title>Performance</title> |
| 47 |
<para> |
| 48 |
<emphasis>xrvt</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). |
| 49 |
</para> |
| 50 |
|
| 51 |
<para> |
| 52 |
This filter reiterates the input with an echo density determined by loop time <emphasis>ilpt</emphasis>. The attenuation rate is independent and is determined by <emphasis>xrvt</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). Output will begin to appear immediately. |
| 53 |
</para> |
| 54 |
</refsect1> |
| 55 |
|
| 56 |
<refsect1> |
| 57 |
<title>Examples</title> |
| 58 |
<para> |
| 59 |
Here is an example of the alpass opcode. It uses the file <ulink url="examples/alpass.csd"><citetitle>alpass.csd</citetitle></ulink>. |
| 60 |
|
| 61 |
<example> |
| 62 |
<title>Example of the alpass opcode.</title> |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
<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> |
| 67 |
<xi:include href="examples-xml/alpass.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 68 |
</example> |
| 69 |
</para> |
| 70 |
</refsect1> |
| 71 |
|
| 72 |
<refsect1> |
| 73 |
<title>See also</title> |
| 74 |
<para><link linkend="SigmodReverbtn"><citetitle>Reverberation</citetitle></link></para> |
| 75 |
</refsect1> |
| 76 |
|
| 77 |
<refsect1> |
| 78 |
<title>Credits</title> |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
<para>Audio rate parameter introduced in version 6.02</para> |
| 88 |
<para>November 2013.</para> |
| 89 |
</refsect1> |
| 90 |
</refentry> |