Frequency and Phase Modulation

To get started, boot the server.

Frequency Modulation of Two Sine Waves

Frequency modulation is the modulation of the frequency of a signal called the carrier via some other signal called the modulator. Typically, both the modulator and the carrier are sine waves. We'll see shortly that these two simple signals alone can produce complex spectra when frequency modulated. The mathematical realization can be shown below: $$g(t) = \sin(2\pi (f_c + k_f\sin(2\pi f_m t)t)$$

Note that is sometimes called direct FM.

We will see quickly that frequency modulation produces interesting and unintuitive partials. So let us open up a frequency scope to observe what happens.

Our initial settings have the frequency of the carrier at an audible rate of 440Hz. In these initial settings, we will hear this as the dominant frequency. The frequency of the modulator is a low frequency. Low frequency modulators are sometimes called LFOs (i.e., low-frequency oscillators). LFOs tend to have frequency rates below human hearing so less than 20Hz. Think carefully about what this LFO is doing. It's changing the frequency of the carrier by plus/minus 1. So the frequency of the signal we hear fluctuates between 339Hz and 441Hz creating a vibrato effect.

Try increasing the value of k_f to increase the deviation and widen the vibrato. For now, do not set this above about 10Hz.

If we change the frequency of the carrier, the pitch changes.

Slowly bring the frequency of the modulator up to increase the rate of the vibrato. What happens as the vibrato rate increases about 20Hz? How do we perceive the sound?

What happens to the partials if we change k_f?

Frequency Modulation with Mouse Control

This example offers a way to explore frequency modulation using a mouse. The y position of the mouse represents the modulation index on a scale of 0 to 10 and the x position represents the frequency of the modulator. Recall that the modulation index is defined as $k_f/f_m$ where $k_f$ is the amplitude of the of the modulating sine wave. See what kind of sounds you can produce! Can you create any harmonic sounds?

Harmonicity

Frequency modulation with sine waves for the carrier and modulator are harmonic when the ratio between the two is an integer. In sound synthesis, the carrier is typically the fundamental. We can define the harmonicity ratio then as $f_m/f_c$.

Envelopes and FM

As a reminder:

Let's add an amplitude envelope to shape our sound.

Gong Sound

Harp Sound

Index Modulation

Here we want to shape the strength of the partials over time. All real sounds have evolving spectra that adds interest and naturalness. To create more interesting FM, we want to shape the modulation index overtime since the modulation index controls the strength of the partials. modIndex below will be the minimum strength and modIndex * indexFactor will be the maximum strength. Increasing indexFactor will increase strength of partials at peak. Here we will create an envelope to change the modulation index over time.

Phase Modulation

Phase Modulation is closely related to FM. The formula for PM is the following:

$$A_c\sin(2\pi f_c t + k_p\sin(2\pi f_m t))$$

Note that this is sometimes called indirect FM or Chowning-style FM.

The End