2022-04-12 22:02:59 -03:00
|
|
|
<!DOCTYPE html>
|
2022-04-12 21:54:18 -03:00
|
|
|
|
|
|
|
<!--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>
|
2022-04-12 22:02:59 -03:00
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
|
2022-04-12 21:54:18 -03:00
|
|
|
<TITLE>Measures of Amplitude</TITLE>
|
|
|
|
<META NAME="description" CONTENT="Measures of 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="node9.html">
|
|
|
|
<LINK REL="previous" HREF="node7.html">
|
|
|
|
<LINK REL="up" HREF="node7.html">
|
|
|
|
<LINK REL="next" HREF="node9.html">
|
|
|
|
</HEAD>
|
|
|
|
|
|
|
|
<BODY >
|
|
|
|
<!--Navigation Panel-->
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html665"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node9.html">
|
|
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="next.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html659"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node7.html">
|
|
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="up.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html653"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node7.html">
|
|
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="prev.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html661"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node4.html">
|
|
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="contents.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html663"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node201.html">
|
|
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="index.png"></A>
|
2022-04-12 21:54:18 -03:00
|
|
|
<BR>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Next:</B> <A ID="tex2html666"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node9.html">Units of Amplitude</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Up:</B> <A ID="tex2html660"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node7.html">Sinusoids, amplitude and frequency</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Previous:</B> <A ID="tex2html654"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node7.html">Sinusoids, amplitude and frequency</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> <A ID="tex2html662"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node4.html">Contents</A></B>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> <A ID="tex2html664"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node201.html">Index</A></B>
|
|
|
|
<BR>
|
|
|
|
<BR>
|
|
|
|
<!--End of Navigation Panel-->
|
|
|
|
|
2022-04-12 23:32:40 -03:00
|
|
|
<H1><A ID="SECTION00510000000000000000"></A>
|
|
|
|
<A ID="sect1.amplitude"></A>
|
2022-04-12 21:54:18 -03:00
|
|
|
<BR>
|
|
|
|
Measures of Amplitude
|
|
|
|
</H1>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
The most fundamental property of a digital audio signal is its
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="1038"></A>amplitude. Unfortunately, a signal's amplitude has no one canonical
|
2022-04-12 21:54:18 -03:00
|
|
|
definition.
|
|
|
|
Strictly speaking, all the samples in a digital audio signal are themselves
|
|
|
|
amplitudes, and we also spoke of the amplitude <IMG
|
|
|
|
WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
|
|
|
|
SRC="img4.png"
|
|
|
|
ALT="$a$"> of the sinusoid as a whole.
|
|
|
|
It is useful to have measures
|
|
|
|
of amplitude for digital audio signals in general. Amplitude
|
|
|
|
is best thought of as applying to a
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="1039"></A><I>window</I>, a fixed range of samples of the signal. For instance, the
|
2022-04-12 21:54:18 -03:00
|
|
|
window starting at sample <IMG
|
|
|
|
WIDTH="20" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
|
|
|
|
SRC="img86.png"
|
|
|
|
ALT="$M$"> of length <IMG
|
|
|
|
WIDTH="18" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
|
|
|
|
SRC="img3.png"
|
|
|
|
ALT="$N$"> of an audio signal <IMG
|
|
|
|
WIDTH="31" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
|
|
|
SRC="img80.png"
|
|
|
|
ALT="$x[n]$"> consists of the
|
|
|
|
samples,
|
|
|
|
<BR><P></P>
|
|
|
|
<DIV ALIGN="CENTER">
|
|
|
|
<!-- MATH
|
|
|
|
\begin{displaymath}
|
|
|
|
x[M], x[M+1], \ldots, x[M+N-1]
|
|
|
|
\end{displaymath}
|
|
|
|
-->
|
|
|
|
|
|
|
|
<IMG
|
|
|
|
WIDTH="234" HEIGHT="28" BORDER="0"
|
|
|
|
SRC="img87.png"
|
|
|
|
ALT="\begin{displaymath}
|
|
|
|
x[M], x[M+1], \ldots, x[M+N-1]
|
|
|
|
\end{displaymath}">
|
|
|
|
</DIV>
|
|
|
|
<BR CLEAR="ALL">
|
|
|
|
<P></P>
|
|
|
|
The two most frequently used measures of amplitude are the
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="1041"></A><A ID="1042"></A><I>peak amplitude</I>, which is simply the greatest sample (in absolute value)
|
2022-04-12 21:54:18 -03:00
|
|
|
over the window:
|
|
|
|
<BR><P></P>
|
|
|
|
<DIV ALIGN="CENTER">
|
|
|
|
<!-- MATH
|
|
|
|
\begin{displaymath}
|
|
|
|
{A_{\mathrm{peak}}} \{x[n]\} = \max | x[n] | ,
|
|
|
|
\hspace{0.3in}n = M, \ldots, M+N-1
|
|
|
|
\end{displaymath}
|
|
|
|
-->
|
|
|
|
|
|
|
|
<IMG
|
|
|
|
WIDTH="373" HEIGHT="29" BORDER="0"
|
|
|
|
SRC="img88.png"
|
|
|
|
ALT="\begin{displaymath}
|
|
|
|
{A_{\mathrm{peak}}} \{x[n]\} = \max \vert x[n] \vert ,
|
|
|
|
\hspace{0.3in}n = M, \ldots, M+N-1
|
|
|
|
\end{displaymath}">
|
|
|
|
</DIV>
|
|
|
|
<BR CLEAR="ALL">
|
|
|
|
<P></P>
|
|
|
|
and the
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="1046"></A><I>root mean square</I> (RMS) amplitude:
|
2022-04-12 21:54:18 -03:00
|
|
|
<BR><P></P>
|
|
|
|
<DIV ALIGN="CENTER">
|
|
|
|
<!-- MATH
|
|
|
|
\begin{displaymath}
|
|
|
|
{A_{\mathrm{RMS}}} \{x[n]\} = \sqrt{P\{x[n]\}}
|
|
|
|
\end{displaymath}
|
|
|
|
-->
|
|
|
|
|
|
|
|
<IMG
|
|
|
|
WIDTH="177" HEIGHT="28" BORDER="0"
|
|
|
|
SRC="img89.png"
|
|
|
|
ALT="\begin{displaymath}
|
|
|
|
{A_{\mathrm{RMS}}} \{x[n]\} = \sqrt{P\{x[n]\}}
|
|
|
|
\end{displaymath}">
|
|
|
|
</DIV>
|
|
|
|
<BR CLEAR="ALL">
|
|
|
|
<P></P>
|
|
|
|
where <IMG
|
|
|
|
WIDTH="59" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
|
|
|
SRC="img90.png"
|
|
|
|
ALT="$P\{x[n]\}$"> is the mean
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="1050"></A><I>power</I>, defined as:
|
2022-04-12 21:54:18 -03:00
|
|
|
<BR><P></P>
|
|
|
|
<DIV ALIGN="CENTER">
|
|
|
|
<!-- MATH
|
|
|
|
\begin{displaymath}
|
|
|
|
{P\{x[n]\}} = {1 \over N} \left (
|
|
|
|
{{|x[M]|} ^2} + \cdots + {{|x[M+N-1]|} ^2}
|
|
|
|
\right )
|
|
|
|
\end{displaymath}
|
|
|
|
-->
|
|
|
|
|
|
|
|
<IMG
|
|
|
|
WIDTH="335" HEIGHT="38" BORDER="0"
|
|
|
|
SRC="img91.png"
|
|
|
|
ALT="\begin{displaymath}
|
|
|
|
{P\{x[n]\}} = {1 \over N} \left (
|
|
|
|
{{\vert x[M]\vert} ^2} + \cdots + {{\vert x[M+N-1]\vert} ^2}
|
|
|
|
\right )
|
|
|
|
\end{displaymath}">
|
|
|
|
</DIV>
|
|
|
|
<BR CLEAR="ALL">
|
|
|
|
<P></P>
|
|
|
|
(In this last formula, the absolute value signs aren't necessary at the moment
|
|
|
|
since we're working on real-valued signals, but they will become important
|
|
|
|
later when we consider complex-valued signals.) Neither the peak nor the RMS
|
|
|
|
amplitude of any signal can be negative, and either one can be exactly zero
|
|
|
|
only if the signal itself is zero for all <IMG
|
|
|
|
WIDTH="13" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
|
|
|
|
SRC="img75.png"
|
|
|
|
ALT="$n$"> in the window.
|
|
|
|
|
|
|
|
<P>
|
|
|
|
The RMS amplitude of a signal may equal the peak amplitude but never exceeds
|
|
|
|
it; and it may be as little as <IMG
|
|
|
|
WIDTH="47" HEIGHT="38" ALIGN="MIDDLE" BORDER="0"
|
|
|
|
SRC="img92.png"
|
|
|
|
ALT="$1 / {\sqrt N}$"> times the peak amplitude, but
|
|
|
|
never less than that.
|
|
|
|
|
|
|
|
<P>
|
|
|
|
|
2022-04-12 23:32:40 -03:00
|
|
|
<DIV ALIGN="CENTER"><A ID="fig01.02"></A><A ID="1059"></A>
|
2022-04-12 21:54:18 -03:00
|
|
|
<TABLE>
|
|
|
|
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 1.2:</STRONG>
|
|
|
|
Root mean square (RMS) and peak amplitudes of signals compared.
|
|
|
|
For a sinusoid (part a), the peak amplitude is higher than RMS by a factor of
|
|
|
|
<IMG
|
|
|
|
WIDTH="24" HEIGHT="37" ALIGN="MIDDLE" BORDER="0"
|
|
|
|
SRC="img1.png"
|
|
|
|
ALT="$\sqrt 2$">.</CAPTION>
|
|
|
|
<TR><TD><IMG
|
|
|
|
WIDTH="362" HEIGHT="306" BORDER="0"
|
|
|
|
SRC="img93.png"
|
|
|
|
ALT="\begin{figure}\psfig{file=figs/fig01.02.ps}\end{figure}"></TD></TR>
|
|
|
|
</TABLE>
|
|
|
|
</DIV>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
Under reasonable conditions--if the window contains at least several periods and
|
|
|
|
if the angular frequency is well under one radian per sample--the peak
|
|
|
|
amplitude of the sinusoid of Page <A HREF="node7.html#eq-realsinusoid"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="crossref.png"></A>
|
2022-04-12 21:54:18 -03:00
|
|
|
is approximately <IMG
|
|
|
|
WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
|
|
|
|
SRC="img4.png"
|
|
|
|
ALT="$a$"> and its RMS amplitude
|
|
|
|
about <IMG
|
|
|
|
WIDTH="41" HEIGHT="37" ALIGN="MIDDLE" BORDER="0"
|
|
|
|
SRC="img94.png"
|
|
|
|
ALT="$a / {\sqrt 2}$">. Figure <A HREF="#fig01.02">1.2</A> shows the peak and RMS amplitudes
|
|
|
|
of two digital audio signals.
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
|
|
<!--Navigation Panel-->
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html665"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node9.html">
|
|
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="next.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html659"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node7.html">
|
|
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="up.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html653"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node7.html">
|
|
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="prev.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html661"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node4.html">
|
|
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="contents.png"></A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<A ID="tex2html663"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node201.html">
|
|
|
|
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
|
2022-04-12 22:02:59 -03:00
|
|
|
SRC="index.png"></A>
|
2022-04-12 21:54:18 -03:00
|
|
|
<BR>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Next:</B> <A ID="tex2html666"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node9.html">Units of Amplitude</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Up:</B> <A ID="tex2html660"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node7.html">Sinusoids, amplitude and frequency</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> Previous:</B> <A ID="tex2html654"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node7.html">Sinusoids, amplitude and frequency</A>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> <A ID="tex2html662"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node4.html">Contents</A></B>
|
2022-04-12 23:32:40 -03:00
|
|
|
<B> <A ID="tex2html664"
|
2022-04-12 21:54:18 -03:00
|
|
|
HREF="node201.html">Index</A></B>
|
|
|
|
<!--End of Navigation Panel-->
|
|
|
|
<ADDRESS>
|
|
|
|
Miller Puckette
|
|
|
|
2006-12-30
|
|
|
|
</ADDRESS>
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|