next up previous contents index
Next: Units of Amplitude Up: Sinusoids, amplitude and frequency Previous: Sinusoids, amplitude and frequency   Contents   Index


Measures of Amplitude

Strictly speaking, all the samples in a digital audio signal are themselves amplitudes, and we also spoke of the amplitude $a$ of the Sinusoid above. In dealing with general digital audio signals, it is useful to have measures of amplitude for them. Amplitude and other measures are best thought of as applying to a window, a fixed range of samples of the signal. For instance, the window starting at sample $M$ of length $N$ of an audio signal $x[n]$ consists of the samples,

\begin{displaymath}
x[M], x[M+1], \ldots, x[M+N-1]
\end{displaymath}

The two most frequently used measures of amplitude are the peak amplitude, which is simply the greatest sample (in absolute value) over the window:

\begin{displaymath}
{A_{\mathrm{peak}}} \{x[n]\} = \max \vert x[n] \vert ,
\hspace{0.3in}n = M, \ldots, M+N-1
\end{displaymath}

and the root mean square (RMS) amplitude:

\begin{displaymath}
{A_{\mathrm{RMS}}} \{x[n]\} = \sqrt{P\{x[n]\}}
\end{displaymath}

where $P\{x[n]\}$ is the mean power, defined as:

\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}

(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 $n$ in the window.

The RMS amplitude of a signal may equal the peak amplitude but never exceeds it; and it may be as little as $1 / {\sqrt N}$ times the peak amplitude, but never less than that.

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 is approximately $a$ and its RMS amplitude about $a / {\sqrt 2}$.


next up previous contents index
Next: Units of Amplitude Up: Sinusoids, amplitude and frequency Previous: Sinusoids, amplitude and frequency   Contents   Index
Miller Puckette 2006-03-03