| 1 | |
| 2 | <refentry id="delay1"> |
| 3 | <indexterm id="IndexDelay1"><primary>delay1</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Delay</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>delay1</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>delay1</refname> |
| 13 | <refpurpose> |
| 14 | Delays an input signal by one sample. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Delays an input signal by one sample. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ares <command>delay1</command> asig [, iskip]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <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. |
| 34 | </para> |
| 35 | </refsect1> |
| 36 | |
| 37 | <refsect1> |
| 38 | <title>Performance</title> |
| 39 | <para> |
| 40 | <emphasis>delay1</emphasis> is a special form of delay that serves to delay the audio signal <emphasis>asig</emphasis> by just one sample. It is thus functionally equivalent to the <link linkend="delay"><citetitle>delay</citetitle></link> opcode but is more efficient in both time and space. This unit is particularly useful in the fabrication of generalized non-recursive filters. |
| 41 | </para> |
| 42 | </refsect1> |
| 43 | |
| 44 | <refsect1> |
| 45 | <title>Examples</title> |
| 46 | <para> |
| 47 | Here is an example of the delay and delay1 opcodes. It uses the file <ulink url="examples/delay1.csd"><citetitle>delay1.csd</citetitle></ulink>. |
| 48 | |
| 49 | <example> |
| 50 | <title>Example of the delay1 opcode.</title> |
| 51 | |
| 52 | <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> |
| 53 | <xi:include href="examples-xml/delay1.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 54 | </example> |
| 55 | </para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <para> |
| 59 | This shows the result of the example: 5 times the beats and the noise. 1.Original samples, 2.first-order lowpass, 3.first-order highpass, 4.second-order notch and 5.second-order bandpass. |
| 60 | </para> |
| 61 | <mediaobject> |
| 62 | <imageobject> |
| 63 | <imagedata fileref="images/delay1.png" format="PNG"/> |
| 64 | </imageobject> |
| 65 | </mediaobject> |
| 66 | |
| 67 | <refsect1> |
| 68 | <title>See also</title> |
| 69 | <para><link linkend="SigmodDelay"><citetitle>Delay</citetitle></link></para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>Credits</title> |
| 74 | <para>Author: Barry Vercoe</para> |
| 75 | </refsect1> |
| 76 | </refentry> |