203 lines
6.9 KiB
HTML
203 lines
6.9 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||
|
|
||
|
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
|
||
|
original version by: Nikos Drakos, CBLU, University of Leeds
|
||
|
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
|
||
|
* with significant contributions from:
|
||
|
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>Controlling Amplitude</TITLE>
|
||
|
<META NAME="description" CONTENT="Controlling Amplitude">
|
||
|
<META NAME="keywords" CONTENT="book">
|
||
|
<META NAME="resource-type" CONTENT="document">
|
||
|
<META NAME="distribution" CONTENT="global">
|
||
|
|
||
|
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
|
||
|
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
|
||
|
|
||
|
<LINK REL="STYLESHEET" HREF="book.css">
|
||
|
|
||
|
<LINK REL="next" HREF="node11.html">
|
||
|
<LINK REL="previous" HREF="node9.html">
|
||
|
<LINK REL="up" HREF="node7.html">
|
||
|
<LINK REL="next" HREF="node11.html">
|
||
|
</HEAD>
|
||
|
|
||
|
<BODY >
|
||
|
<!--Navigation Panel-->
|
||
|
<A NAME="tex2html693"
|
||
|
HREF="node11.html">
|
||
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/next.png"></A>
|
||
|
<A NAME="tex2html687"
|
||
|
HREF="node7.html">
|
||
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/up.png"></A>
|
||
|
<A NAME="tex2html681"
|
||
|
HREF="node9.html">
|
||
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/prev.png"></A>
|
||
|
<A NAME="tex2html689"
|
||
|
HREF="node4.html">
|
||
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/contents.png"></A>
|
||
|
<A NAME="tex2html691"
|
||
|
HREF="node201.html">
|
||
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/index.png"></A>
|
||
|
<BR>
|
||
|
<B> Next:</B> <A NAME="tex2html694"
|
||
|
HREF="node11.html">Frequency</A>
|
||
|
<B> Up:</B> <A NAME="tex2html688"
|
||
|
HREF="node7.html">Sinusoids, amplitude and frequency</A>
|
||
|
<B> Previous:</B> <A NAME="tex2html682"
|
||
|
HREF="node9.html">Units of Amplitude</A>
|
||
|
<B> <A NAME="tex2html690"
|
||
|
HREF="node4.html">Contents</A></B>
|
||
|
<B> <A NAME="tex2html692"
|
||
|
HREF="node201.html">Index</A></B>
|
||
|
<BR>
|
||
|
<BR>
|
||
|
<!--End of Navigation Panel-->
|
||
|
|
||
|
<H1><A NAME="SECTION00530000000000000000">
|
||
|
Controlling Amplitude</A>
|
||
|
</H1>
|
||
|
|
||
|
<P>
|
||
|
Perhaps the most frequently used operation on electronic sounds is to change
|
||
|
their amplitudes. For example, a simple strategy for synthesizing sounds is by
|
||
|
combining sinusoids, which can be generated by evaluating the formula on Page
|
||
|
<A HREF="node7.html#eq-realsinusoid"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/crossref.png"></A>, sample by sample. But the sinusoid has a constant
|
||
|
nominal amplitude <IMG
|
||
|
WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
|
||
|
SRC="img4.png"
|
||
|
ALT="$a$">, and we would like to be able to vary that in time.
|
||
|
|
||
|
<P>
|
||
|
|
||
|
<DIV ALIGN="CENTER"><A NAME="fig01.04"></A><A NAME="1090"></A>
|
||
|
<TABLE>
|
||
|
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 1.4:</STRONG>
|
||
|
The relationship between ``MIDI" pitch and frequency in cycles per
|
||
|
second (Hertz). The span of 24 MIDI values on the horizontal axis represents
|
||
|
two octaves, over which the frequency increases by a factor of four.</CAPTION>
|
||
|
<TR><TD><IMG
|
||
|
WIDTH="445" HEIGHT="274" BORDER="0"
|
||
|
SRC="img104.png"
|
||
|
ALT="\begin{figure}\psfig{file=figs/fig01.04.ps}\end{figure}"></TD></TR>
|
||
|
</TABLE>
|
||
|
</DIV>
|
||
|
|
||
|
<P>
|
||
|
In general, to multiply the amplitude of a signal <IMG
|
||
|
WIDTH="31" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img80.png"
|
||
|
ALT="$x[n]$"> by a factor <IMG
|
||
|
WIDTH="41" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img105.png"
|
||
|
ALT="$y \ge
|
||
|
0$">, you can just multiply each sample by <IMG
|
||
|
WIDTH="11" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img106.png"
|
||
|
ALT="$y$">, giving a new signal <IMG
|
||
|
WIDTH="50" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img107.png"
|
||
|
ALT="$y \cdot
|
||
|
x[n]$">. Any measurement of the RMS or peak amplitude of <IMG
|
||
|
WIDTH="31" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img80.png"
|
||
|
ALT="$x[n]$"> will be greater
|
||
|
or less by the factor <IMG
|
||
|
WIDTH="11" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img106.png"
|
||
|
ALT="$y$">. More generally, you can change the amplitude by an
|
||
|
amount <IMG
|
||
|
WIDTH="30" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img2.png"
|
||
|
ALT="$y[n]$"> which varies sample by sample. If <IMG
|
||
|
WIDTH="30" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img2.png"
|
||
|
ALT="$y[n]$"> is nonnegative and if
|
||
|
it varies slowly enough, the amplitude of the product <!-- MATH
|
||
|
$y[n] \cdot x[n]$
|
||
|
-->
|
||
|
<IMG
|
||
|
WIDTH="69" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img108.png"
|
||
|
ALT="$y[n] \cdot x[n]$"> (in a
|
||
|
fixed window from <IMG
|
||
|
WIDTH="20" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
|
||
|
SRC="img86.png"
|
||
|
ALT="$M$"> to <IMG
|
||
|
WIDTH="82" HEIGHT="30" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img109.png"
|
||
|
ALT="$M+N-1$">) will be that of <IMG
|
||
|
WIDTH="31" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img80.png"
|
||
|
ALT="$x[n]$">, multiplied by the
|
||
|
value of <IMG
|
||
|
WIDTH="30" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img2.png"
|
||
|
ALT="$y[n]$"> in the window (which we assume doesn't change much over the <IMG
|
||
|
WIDTH="18" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
|
||
|
SRC="img3.png"
|
||
|
ALT="$N$">
|
||
|
samples in the window).
|
||
|
|
||
|
<P>
|
||
|
In the more general case where both <IMG
|
||
|
WIDTH="31" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img80.png"
|
||
|
ALT="$x[n]$"> and <IMG
|
||
|
WIDTH="30" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||
|
SRC="img2.png"
|
||
|
ALT="$y[n]$"> are allowed to take
|
||
|
negative and positive values and/or to change quickly, the effect of multiplying
|
||
|
them can't be described as simply changing the amplitude of one of them; this is
|
||
|
considered later in Chapter <A HREF="node75.html#chapter-modulation">5</A>.
|
||
|
|
||
|
<P>
|
||
|
<HR>
|
||
|
<!--Navigation Panel-->
|
||
|
<A NAME="tex2html693"
|
||
|
HREF="node11.html">
|
||
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/next.png"></A>
|
||
|
<A NAME="tex2html687"
|
||
|
HREF="node7.html">
|
||
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/up.png"></A>
|
||
|
<A NAME="tex2html681"
|
||
|
HREF="node9.html">
|
||
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/prev.png"></A>
|
||
|
<A NAME="tex2html689"
|
||
|
HREF="node4.html">
|
||
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/contents.png"></A>
|
||
|
<A NAME="tex2html691"
|
||
|
HREF="node201.html">
|
||
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
||
|
SRC="file:/usr/local/share/lib/latex2html/icons/index.png"></A>
|
||
|
<BR>
|
||
|
<B> Next:</B> <A NAME="tex2html694"
|
||
|
HREF="node11.html">Frequency</A>
|
||
|
<B> Up:</B> <A NAME="tex2html688"
|
||
|
HREF="node7.html">Sinusoids, amplitude and frequency</A>
|
||
|
<B> Previous:</B> <A NAME="tex2html682"
|
||
|
HREF="node9.html">Units of Amplitude</A>
|
||
|
<B> <A NAME="tex2html690"
|
||
|
HREF="node4.html">Contents</A></B>
|
||
|
<B> <A NAME="tex2html692"
|
||
|
HREF="node201.html">Index</A></B>
|
||
|
<!--End of Navigation Panel-->
|
||
|
<ADDRESS>
|
||
|
Miller Puckette
|
||
|
2006-12-30
|
||
|
</ADDRESS>
|
||
|
</BODY>
|
||
|
</HTML>
|