next up previous contents index
Next: Waveshaping Up: Modulation Previous: Taxonomy of spectra   Contents   Index


Multiplying audio signals

We have been routinely adding audio signals together, and multiplying them by slowly-varying signals (used as amplitude envelopes for example) since chapter 1. In order to complete our understanding of the algebra of audio signals we now consider the situation where we multiply two audio signals neither of which may be assumed to change slowly. The key to understanding what happens is the:

COSINE PRODUCT FORMULA

\begin{displaymath}
\cos(a) \cos (b) = {1 \over 2} { \left [ \cos (a+b) + \cos(a-b) \right ] }.
\end{displaymath}

To see why this formula holds, we can use the formula for the cosine of a sum of two angles:

\begin{displaymath}
\cos(a+b) = \cos(a)\cos(b) - \sin(a) \sin(b)
\end{displaymath}

to evaluate the right hand side of the cosine product formula; it immediately collapses to the left hand side.

We can use this formula to see what happens when we multiply two SINUSOIDS (page [*]):

\begin{displaymath}
{\cos(\alpha n + \phi) \cos (\beta n + \xi)}
=
\end{displaymath}


\begin{displaymath}
= {1 \over 2} { \left [
{\cos \left ( (\alpha + \beta) n +...
...t ( (\alpha - \beta) n + (\phi - \xi) \right ) }
\right ] } .
\end{displaymath}

In words, multiply two sinusoids and you get a result with two partials, one at the sum of the two original frequencies, and one at their difference. (If the difference $\alpha-\beta$ happens to be negative, simply switch $\alpha $ and $\beta $ in the formula and the difference will then be positive.) These components are called sidebands.

This gives us a very easy to use tool for shifting the component frequencies of a sound, called ring modulation, which is shown in its simplest form in Figure 5.2. An oscillator provides a carrier signal, which is simply multiplied by the input. In this context the input is called the modulating signal. The term ``ring modulation" is often used more generally to mean multiplying any two signals together, but here we'll just consider using a sinusoidal carrier signal.

Figure 5.2: Block diagram for ring modulating an input signal with a sinusoid.
\begin{figure}\psfig{file=figs/fig05.02.ps}\end{figure}

Figure 5.3 shows a variety of results that may be obtained by multiplying a (modulating) sinusoid of angular frequency $\alpha $ and RMS amplitude $a$, by a (carrier) sinusoid of angular frequency $\beta $ and amplitude 1:

\begin{displaymath}
\left [ 2 a \cos (\alpha n) \right ]
\cdot
\left [ \cos (\beta n) \right ] .
\end{displaymath}

(For simplicity we're omitting the phase term here.) Each part of the figure shows both the modulation signal and tbe result in the same spectrum. The modulating signal appears as a single frequency, $\alpha $, at amplitude $a$. The product in general has two component frequencies, each at an amplitude of $a/2$.

Figure 5.3: Sidebands arising from multiplying two sinusoids of frequency $\alpha $ and $\beta $. Part (a) shows the case where $\alpha > \beta > 0$; part (b) shows the case where $\beta > \alpha $ but $\beta < 2\alpha $, so that the lower sideband is reflected about the $f=0$ axis. Part (c) shows the situation when $\alpha =\beta $; in this one special case the amplitude of the zero-frequency sideband depends on the phases of the two sinusoids. In part (d), $\alpha $ is zero, so that only one sideband appears.
\begin{figure}\psfig{file=figs/fig05.03.ps}\end{figure}

Parts (a) and (b) of the figure show ``general" cases where $\alpha $ and $\beta $ are nonzero and different from each other. The component frequencies of the output are $\alpha + \beta$ and $\alpha-\beta$. In part (b), since $\alpha-\beta<0$, we get a negative frequency component. Since cosine is an even function, we have

\begin{displaymath}
\cos((\alpha - \beta)n) = \cos((\beta - \alpha)n)
\end{displaymath}

so the negative component is exactly equivalent to one at the positive frequency $\beta-\alpha$, at the same amplitude. We still refer to the two resulting peaks as sidebands, even when they both happen to lie to the right of the original peak.

In the special case where $\alpha =\beta $, the second (difference) sideband has zero frequency. In this case phase will be significant so we rewrite the product with explicit phases, replacing $\beta $ by $\alpha $, to get:

\begin{displaymath}
{2 a \cos(\alpha n + \phi) \cos (\alpha n + \xi)}
=
\end{displaymath}


\begin{displaymath}
=
{a \cos \left ( 2 \alpha n + (\phi + \xi) \right ) }
+
{a \cos \left ( \phi - \xi \right ) }
.
\end{displaymath}

The second term has zero frequency; its amplitude depends on the relative phase of the two sinusoids and ranges from $+a$ to $-a$ as the phase difference $\phi - \xi$ varies from $0$ to $\pi $ radians. This situation is shown in part (c) of Figure 5.3.

Finally, part (d) of the figure shows a carrier signal whose frequency is zero. Its value is just the constant $a$. In this case we get only one sideband, of amplitude $a/2$ as usual.

We can use the distributive rule for multiplication to find out what happens when we multiply signals together which consist of more than one partial each. For example, in the situation above we can replace the signal of frequency $\alpha $ with a sum of several sinusoids, such as:

\begin{displaymath}
{a_1} \cos({\alpha _1} n ) + \cdots + {a_k} \cos({\alpha _k} n ) .
\end{displaymath}

Multiplying by the signal of frequency $\beta $ gives partials at frequencies equal to:

\begin{displaymath}
\alpha_1 + \beta, \alpha_1 - \beta, \cdots,
\alpha_k + \beta, \alpha_k - \beta .
\end{displaymath}

As before if any frequency is negative we take its absolute value.

Figure 5.4 shows the result of multiplying a complex periodic signal (with several components tuned in the ratio 0:1:2:$\cdots$) by a sinusoid. Both the spectral envelope and the component frequencies of the result transform by relatively simple rules.

Figure 5.4: Result of ring modulation of a complex signal by a pure sinusoid: (a) the original signal's spectrum and spectral envelope; (b) modulated by a relatively low modulating frequency (1/3 of the fundamental); (c) modulated by a higher frequency, 10/3 of the fundamental.
\begin{figure}\psfig{file=figs/fig05.04.ps}\end{figure}

The resulting spectrum is essentially the original spectrum combined with its reflection about the vertical axis. This combined spectrum is then shifted to the right by the modulating frequency. Finally, if any components of the shifted spectrum are still left of the vertical axis, they are reflected about it to make positive frequencies again.

In part (b) of the figure, the modulating frequency (the frequency of the sinusoid) is below the fundamental frequency of the complex signal. In this case the shifting is by a relatively small distance, so that re-folding the spectrum at the end almost places the two halves on top of each other. The result is a spectral envelope roughly the same as the original (although half as high) and a spectrum twice as dense.

A special case, not shown, is modulation by a frequency exactly half the fundamental. In this case, pairs of partials will fall on top of each other, and will have the ratios 1/2 : 3/2 : 5/2 :$\cdots$ - an odd-partial-only signal an octave below the original. This is a very simple and effective octave divider for a harmonic signal, asuming you know or can find its fundamental frequency. If you want even partials as well as odd ones (for the octave-down signal), simply mix the original signal with the modulated one.

Part (c) of the figure shows the effect of using a modulating frequency much higher than the fundamental frequency of the complex signal. Here the unfolding effect is much more clearly visible (only one partial, the leftmost one, had to be reflected to make its frequency positive.) The spectral envelope is now widely displaced from the original; this displacement is often a more strongly audible effect than the relocation of partials.

In another special case, the modulating frequency may be a multiple of the fundamental of the complex periodic signal; in this case the partials all land back on other partials of the same fundamental, and the only effect is the shift in spectral envelope.


next up previous contents index
Next: Waveshaping Up: Modulation Previous: Taxonomy of spectra   Contents   Index
msp 2003-12-08