1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; IRIX 6.3 IP32) [Netscape]">
<TITLE>DELAYR</TITLE>
</HEAD>
<BODY>
<CENTER><A NAME="delayr"></A>
<HR><B><A HREF="../REFER.html">QUICK-REF</A></B> - <B><A HREF="../TITLE.html"><FONT SIZE=+1>C</FONT>soundManual</A></B>
- <B><A HREF="SIG_MOD.html">Top of this section</A></B> - <A HREF="harmon.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="deltap.html">Next</A>
<HR></CENTER>
<H2>
delayr, delayw, delay, delay1</H2>
<PRE> ar <B>delayr</B> idlt[, istor]
<B>delayw</B> asig
ar <B>delay</B> asig, idlt[, istor]
ar <B>delay1</B> asig[, istor]</PRE>
<HR>
<H4>
<U>DESCRIPTION</U></H4>
A signal can be read from or written into a delay path, or it can be automatically
delayed by some time interval.
<H4>
<U>INITIALIZATION</U></H4>
<I>idlt</I> - 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 * <B>sr</B> bytes. It is allocated at the time the instrument is
first initialized, and returned to the pool at the end of a score section.
<P><I>istor</I> (optional) - initial disposition of delay-loop data space
( <A HREF="port.html">see reson</A>). The default value is 0.
<H4>
<U>PERFORMANCE</U></H4>
<B>delayr</B> reads from an automatically established digital delay line,
in which the signal retrieved has been resident for <I>idlt</I> seconds.
This unit must be paired with and precede an accompanying <B>delayw</B>
unit. Any other <B>Csound</B> statements can intervene.
<P><B>delayw</B> writes <I>asig</I> into the delay area established by
the preceding <B>delayr</B> unit. Viewed as a pair, these two units permit
the formation of modified feedback loops, etc. However, there is a lower
bound on the value of <I>idlt</I>, which must be at least 1 control period
(or 1/<B>kr</B>).
<P><B>delay</B> is a composite of the above two units, both reading from
and writing into its own storage area. It can thus accomplish signal time-shift,
although modified feedback is not possible. There is no minimum delay period.
<P><B>delay1</B> is a special form of delay that serves to delay the audio
signal <I>asig</I> by just one sample. It is thus functionally equivalent
to "<B>delay</B> asig, 1/<B>sr</B>" but is more efficient in both time
and space. This unit is particularly useful in the fabrication of generalized
non-recursive filters.
<H4>
<U>EXAMPLE:</U></H4>
<PRE> <B>tigoto</B> contin ; except on a tie,
a2 <B>delay</B> a1, .05, 0 ; begin 50 msec clean delay of sig
contin:</PRE>
<CENTER></CENTER>
<CENTER>
<HR><B><A HREF="../REFER.html">QUICK-REF</A></B> - <B><A HREF="../TITLE.html"><FONT SIZE=+1>C</FONT>soundManual</A></B>
- <B><A HREF="SIG_MOD.html">Top of this section</A></B> - <A HREF="harmon.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="deltap.html">Next</A>
<HR></CENTER>
<CENTER></CENTER>
<CENTER><B><I><FONT COLOR="#006600">HTML Csound Manual - <FONT SIZE=-1>©
Jean Piché & Peter J. Nix, 1994-97</FONT></FONT></I></B></CENTER>
</BODY>
</HTML>
|