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 83 84 85 86
|
<HTML>
<TITLE>COMB</TITLE>
<CENTER><A NAME="comb"></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="./vdelay.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="./reverb2.html">Next</A>
<HR></CENTER>
<H2>
comb, alpass, reverb</H2>
<PRE> ar <B>comb</B> asig, krvt, ilpt[, istor]
ar <B>alpass</B> asig, krvt, ilpt[, istor]
ar <B>reverb</B> asig, krvt[, istor]</PRE>
<HR>
<H4>
<U>DESCRIPTION</U></H4>
An input signal is reverberated for krvt seconds with "colored" (comb),
flat (alpass), or "natural room" (reverb) frequency response.
<H4>
<U>INITIALIZATION</U></H4>
<I>ilpt</I> - loop time in seconds, which determines the "echo density"
of the reverberation. This in turn characterizes the "color" of the <B>comb</B>
filter whose frequency response curve will contain <I>ilpt</I> * <B>sr</B>/2
peaks spaced evenly between 0 and <B>sr</B>/2 (the Nyquist frequency).
Loop time can be as large as available memory will permit. The space required
for an <I>n</I> second loop is <I>4n</I>* <B>sr</B> bytes. <B>comb</B>
and <B>alpass</B> delay space is allocated and returned as in <B><A HREF="./delayr.html">delay</A></B>.
<P><I>istor</I> (optional) - initial disposition of delay-loop data space
( <A HREF="./port.html">cf. reson</A>). The default value is 0.
<H4>
<U>PERFORMANCE</U></H4>
These filters reiterate input with an echo density determined by loop time
<I>ilpt</I>. The attenuation rate is independent and is determined by <I>krvt</I>,
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 from
a comb filter will appear only after <I>ilpt</I> seconds; <B>alpass</B>
output will begin to appear immediately.
<P>A standard <B>reverb</B> unit is composed of four comb filters in parallel
followed by two <B>alpass</B> units in series. Looptimes are set for optimal
"natural room response." Core storage requirements for this unit are proportional
only to the sampling rate, each unit requiring approximately 3K words for
every 10KC. The <B>comb, alpass, <A HREF="./delayr.html">delay</A>, <A HREF="./port.html">tone</A></B>
and other <B>Csound</B> units provide the means for experimenting with
alternate reverberator designs
<P>Since output from the standard <B>reverb</B> will begin to appear only
after 1/20 second or so of delay, and often with less than three-fourths
of the original power, it is normal to output both the source and the reverberated
signal. Also, since the reverberated sound will persist long after the
cessation of source events, it is normal to put <B>reverb</B> in a separate
instrument to which sound is passed via a <I><A HREF="../Syntax/const.html">global
variable</A></I>, and to leave that instrument running throughout the performance.
<H4>
<U>EXAMPLE:</U></H4>
<PRE> ga1 <B>init</B> 0 ; init an audio receiver/mixer
instr 1 ; instr (there may be many copies)
a1 <B>oscili</B> 8000, cpspch(p5), 1 ; generate a source signal
<B>out</B> a1 ; output the direct sound
ga1 <B>= </B> ga1 + a1 ; and add to audio receiver
endin
instr 99 ; (highest instr number executed last)
a3 <B>reverb</B> ga1, 1.5 ; reverberate whatever is in ga1
<B>out</B> a3 ; and output the result
ga1 <B>=</B> 0 ; empty the receiver for the next pass
endin</PRE>
<CENTER><P>
<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="./vdelay.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="./reverb2.html">Next</A>
<HR></CENTER>
<P><CENTER>
<B><I><FONT COLOR="#006600">HTML Csound Manual - <FONT SIZE=-1>©
Jean Piché & Peter J. Nix, 1994-97</FONT></FONT></I></B>
</CENTER>
</HTML>
|