A continuation of frequency modulation synthesis, including a closer look at the numbers and underlying principles, and a more specific discussion of how modulation parameters affect the output signal spectrum.
Rules/Guidelines of FM:
1. As modulator amplitude increases, the number of sidebands increases.
2. The frequency interval at which sidebands appear equals modulator frequency.
3. The output signal will tend to produce a clear sense of pitch when the carrier/modulator frequencies form a simple ratio (e.g. 2:1).
Some example code developed in connection with this video: http://sccode.org/1-5bA
If you've ever played games on the Sega Genesis (which included an FM sound chip developed by Yamaha), you might experience some flashbacks around 13:25 (especially if you played Sonic the Hedgehog 2).