| 1 | |
| 2 | <refentry id="delayr"> |
| 3 | <indexterm id="IndexDelayr"><primary>delayr</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Delay</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>delayr</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>delayr</refname> |
| 13 | <refpurpose> |
| 14 | Reads from an automatically established digital delay line. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Reads from an automatically established digital delay line. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ares <command>delayr</command> idlt [, iskip]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>idlt</emphasis> -- requested delay time in seconds. This can be as large as available memory will permit. The space required for n seconds of delay is 4n * <emphasis>sr</emphasis> bytes. It is allocated at the time the instrument is first initialized, and returned to the pool at the end of a score section. |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | <emphasis>iskip</emphasis> (optional, default=0) -- initial disposition of delay-loop data space (see <link linkend="reson"><citetitle>reson</citetitle></link>). The default value is 0. |
| 38 | </para> |
| 39 | </refsect1> |
| 40 | |
| 41 | <refsect1> |
| 42 | <title>Performance</title> |
| 43 | <para> |
| 44 | <emphasis>delayr</emphasis> reads from an automatically established digital delay line, in which the signal retrieved has been resident for <emphasis>idlt</emphasis> seconds. This unit must be paired with and precede an accompanying <link linkend="delayw"><citetitle>delayw</citetitle></link> unit. Any other Csound statements can intervene. |
| 45 | </para> |
| 46 | </refsect1> |
| 47 | |
| 48 | <refsect1> |
| 49 | <title>Examples</title> |
| 50 | <para> |
| 51 | Here is an example of the delayr opcode. It uses the file <ulink url="examples/delayr.csd"><citetitle>delayr.csd</citetitle></ulink>. |
| 52 | |
| 53 | <example> |
| 54 | <title>Example of the delayr opcode.</title> |
| 55 | |
| 56 | <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> |
| 57 | <xi:include href="examples-xml/delayr.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 58 | </example> |
| 59 | </para> |
| 60 | </refsect1> |
| 61 | |
| 62 | <refsect1> |
| 63 | <title>See also</title> |
| 64 | <para><link linkend="SigmodDelay"><citetitle>Delay</citetitle></link></para> |
| 65 | </refsect1> |
| 66 | |
| 67 | </refentry> |