next up previous contents index
Next: Exercises Up: Examples Previous: Sinusoidal waveshaping: evenness and   Contents   Index

Phase modulation and FM

Example E08.phase.mod.pd, shown in Figure 5.15, shows how to use Pd to realize true frequency modulation (part a) and phase modulation (part b). These correspond to the block diagrams of Figure 5.8. To accomplish phase modulation, the carrier oscillator is split into its phase and cosine lookup components. The signal is of the form

\begin{displaymath}
x[t] = \cos( \omega_c n + a \cos(\omega_m n))
\end{displaymath}

where $\omega_c$ is the carrier frequency, $\omega_m$ is the modulation frequency, and $a$ is the index of modulation--all in angular units.

Figure 5.15: Pd patches for: (a) frequency modulation; (b) phase modulation.
\begin{figure}\psfig{file=figs/fig05.15.ps}\end{figure}

We can predict the spectrum by expanding the outer cosine:

\begin{displaymath}
x[t] = \cos( \omega_c n ) \cos (a \cos(\omega_m n))
- \sin( \omega_c n ) \sin (a \cos(\omega_m n))
\end{displaymath}

Plugging in the expansions from Page [*] and simplifying yields:

\begin{displaymath}
x[t] = {J_0}(a) \cos( \omega_c n )
\end{displaymath}


\begin{displaymath}
+ {J_1}(a) \cos( (\omega_c+\omega_m) n + {\pi\over2})
+ {J_1}(a) \cos( (\omega_c-\omega_m) n + {\pi\over2})
\end{displaymath}


\begin{displaymath}
+ {J_2}(a) \cos( (\omega_c+2\omega_m) n + \pi)
+ {J_2}(a) \cos( (\omega_c-2\omega_m) n + \pi)
\end{displaymath}


\begin{displaymath}
+ {J_3}(a) \cos( (\omega_c+3\omega_m) n + {{3\pi}\over2})
...
...}(a) \cos( (\omega_c-3\omega_m) n + {{3\pi}\over2})
+ \cdots
\end{displaymath}

So the components are centered about the carrier frequency $\omega_c$ with sidebands extending in either direction, each spaced $\omega_m$ from the next. The amplitudes are functions of the index of modulation, and don't depend on the frequencies. Figure 5.16 shows some two-operator phase modulation spectra, measured using Example E09.FM.spectrum.pd.

Figure 5.16: Spectra from phase modulation at three different indices. The indices are given as multiples of $2\pi $ radians.
\begin{figure}\psfig{file=figs/fig05.16.ps}\end{figure}

Phase modulation can thus be seen simply as a form of ring modulated waveshaping. So we can use the strategies described in Section 5.2 to generate particular combinations of frequencies. For example, if the carrier frequency is half the modulation frequency, you get a sound with odd harmonics exactly as in the octave dividing example (Figure 5.10).

Frequency modulation need not be restricted to purely sinusoidal carrier or modulation oscillators. One well-trodden path is to effect phase modulation on the phase modulation spectrum itself. There are then two indices of modulation (call them $a$ and $b$) and two frequencies of modulation ($\omega_m$ and $\omega_p$) and the waveform is:

\begin{displaymath}
x[n] = \cos(\omega_c n + a \cos(\omega_m n) + b \cos(\omega_p n))
\end{displaymath}

To analyze the result, just rewrite the original FM series above, replacing $\omega_c n$ everywhere with $\omega_c n + b \cos(\omega_p n)$. The third positive sideband becomes for instance:

\begin{displaymath}
{J_3}(a) \cos( (\omega_c+3\omega_m) n + {{3\pi}\over2} + b \cos(\omega_p n))
\end{displaymath}

This is itself just another FM spectrum, with its own sidebands of frequency

\begin{displaymath}
\omega_c+3\omega_m + k \omega_p , k = 0, \pm 1, \pm 2, \ldots
\end{displaymath}

having amplitude ${J_3}(a) {J_k}(b)$ and phase $(3+k)\pi / 2$ [Leb77]. Example E10.complex.FM.pd (not shown here) illustrates this by graphing spectra from a two-modulator FM instrument.

Since early times [Sch77] researchers have sought combinations of phases, frequencies, and modulation indices, for simple and compact phase modulation instruments, that manage to imitate familiar instrumental sounds. This became a major industry with the introduction of commercial FM synthesizers.


next up previous contents index
Next: Exercises Up: Examples Previous: Sinusoidal waveshaping: evenness and   Contents   Index
Miller Puckette 2006-12-30