Lecture 1 · From tonewheels to diffusion models
Three sounds. For each: when was it made, and how?
A
B
C
All three were computed this morning, in a few lines of Python each, but every one of them names an era: A is a 1920 theremin, B is 1973 FM synthesis, C is the 1983 Karplus–Strong plucked string.
A synthesis method is an idea that outlives its hardware. This lecture follows five such ideas through every technology that carried them: dynamos, tubes, transistors, chips, and neural networks.

Each band is a technology; the methods ride on top of them. Additive synthesis was a dynamo in 1897, a spinning wheel in 1935, a computer program in 1957, and is a neural network’s output layer in 2020.
| Idea | One sentence | First built | Still here as |
|---|---|---|---|
| Additive | Timbre is a sum of sinusoids | Telharmonium, 1897 | DDSP’s harmonic synthesizer |
| Subtractive | Start bright, filter away | Trautonium, 1930 | Every virtual-analog plugin |
| Modulation | Let one oscillator bend another | FM, Chowning 1973 | FM operators in every DAW |
| Sampling | Record once, replay and loop | Mellotron, 1963 | Wavetables, neural codecs |
| Physical modeling | Simulate the object that sounds | Kelly–Lochbaum, 1961 | Pianoteq, FDTD, modal synths |
The sixth idea, since 2016
Learn it: fit any of the five, or none of them, to data. The last part of this lecture is about what that changed, and what it did not.
Hermann von Helmholtz (1821–1894)
A brass Helmholtz resonator
H. v. Helmholtz, Die Lehre von den Tonempfindungen als physiologische Grundlage für die Theorie der Musik, 1863.
A tuned resonator held to the ear picks one partial out of a sound. With a set of them, Helmholtz measured the amplitude of every harmonic, and then rebuilt vowels with electrically driven tuning forks (120years): the first analysis-by-synthesis.
His claim, still the working assumption of every synthesizer: the ear hears the amplitudes of the harmonics, and mostly ignores their phases.

Ten half-second steps: harmonic \(k\) is added with amplitude \(1/k\); then the first and the last step again, side by side. The pitch never moves; only the timbre does, from a flute-like sine toward a sawtooth, \[x(t) = \sum_{k=1}^{K} \frac{1}{k}\,\sin(2\pi k f_0 t).\]
Thaddeus Cahill’s Telharmonium, patented 1897 · 120years
No recording of it survives. The first synthesizer was a streaming service, and it failed because its signals leaked into everyone else’s phone calls.
| Year | Instrument | Tone source |
|---|---|---|
| 1876 | Musical Telegraph (Elisha Gray) | electromechanical reeds |
| 1897 | Telharmonium (Cahill) | dynamos, one per pitch |
| 1915 | Audion Piano (de Forest) | vacuum-tube oscillator |
| 1920 | Theremin | two tube oscillators, beating |
| 1928 | Ondes Martenot | tube oscillator + keyboard |
| 1930 | Trautonium | tube oscillator + filters |
| 1935 | Hammond organ | tonewheels + tube amplifier |
The triode made the oscillator small, cheap and controllable by a voltage. That last property is the one that matters: sixty years later, the whole analog synthesizer is built on it.
Leon Theremin and his instrument · 120years
Two radio-frequency oscillators, one fixed and one detuned by the capacitance of the player’s hand near the antenna. What you hear is their difference, \[f_\text{audio} = |f_\text{fixed} - f_\text{hand}|,\] so a change of a fraction of a percent at radio frequency sweeps the whole audible range. A second antenna sets the loudness. The player never touches the instrument.
Our clip is the principle: a sine with no discrete notes, continuous glides and a hand vibrato. The instrument’s difficulty is the same: there is nowhere to put your finger.
Leon Theremin playing his own instrument
Clara Rockmore, The Swan (Saint-Saëns)
Mixtur-Trautonium · 120years
Ondes Martenot · 120years
Trautonium (Friedrich Trautwein, Berlin 1930). A wire pressed onto a metal rail sets the pitch; a sawtooth-like tube oscillator is shaped by resonant filters: subtractive synthesis, 34 years before Moog. Hindemith wrote a Konzertstück for it; Oskar Sala’s Mixtur-Trautonium made the bird sounds in Hitchcock’s The Birds (1963).
Ondes Martenot (Maurice Martenot, Paris 1928). A keyboard and a ring on a ribbon for glissandi, plus a pressure key for loudness. Messiaen’s Turangalîla; today Jonny Greenwood.
Oskar Sala, the Konzert-Trautonium 1940–1950
Nathalie Forget explains the Ondes Martenot (Toronto Symphony)
Hammond B3 with Leslie 122 · 120years
The tonewheel generator, from below
Laurens Hammond, 1935. One motor turns about ninety tonewheels; each is a toothed iron disk in front of a magnetic pickup and produces a near-sinusoid.
Nine drawbars mix the fundamental with eight other footages, each a volume from 0 to 8:
| Drawbar | 16′ | 5⅓′ | 8′ | 4′ | 2⅔′ | 2′ | 1⅗′ | 1⅓′ | 1′ |
|---|---|---|---|---|---|---|---|---|---|
| × \(f_0\) | ½ | 1½ | 1 | 2 | 3 | 4 | 5 | 6 | 8 |
That is Helmholtz’s table as a user interface. The gear ratios only approximate equal temperament, which is part of the sound.

Registrations 888000000, 808808008, 888888888 (with key click), then 888000000 through a rotating Leslie horn: the rotation adds a Doppler shift (a periodically varying delay) and an amplitude modulation. Look for the wobble in the last chord’s partials.
How a tonewheel generator works
The Leslie speaker
Karlheinz Stockhausen in his studio, 1996
Cut, splice, loop, change speed: these are sampling operations, forty years before samplers.
Max Mathews (1926–2011) · 120years: MUSIC N
IBM 7094 console
1957, Bell Labs: MUSIC I on an IBM 704 computes a waveform sample by sample, writes it to tape, and a digital-to-analog converter plays it back. Seventeen seconds of music took hours.
MUSIC III (1960) introduced the unit generator: an oscillator, an envelope, a filter, patched into an instrument and driven by a score. Csound, Max, Pure Data, SuperCollider, every plugin graph, and PyTorch audio modules are that design.
M. V. Mathews, “The digital computer as a musical instrument,” Science 142, 1963.
Daisy Bell, IBM 7094, Bell Labs 1961
Voice by John L. Kelly Jr. and Carol Lochbaum, accompaniment by Max Mathews.
The voice is a vocal tract made of tube sections: waves travel through a chain of cylinders and are partially reflected at every change of diameter. That is a physical model, and the Kelly–Lochbaum model is the ancestor of the digital waveguide (1992).
Arthur C. Clarke heard this demo; HAL 9000 sings Daisy as it dies in 2001 (1968).
Jean-Claude Risset at Bell Labs, 1960s:
Synthesis is also a test of understanding: a model of a sound is right when its resynthesis is indistinguishable from the original. The same criterion decides whether a neural model works.
L. Hiller and P. Ruiz, “Synthesizing musical sounds by solving the wave equation for vibrating objects,” J. Audio Eng. Soc. 19, 1971.
Discretize the string in space and time and step it forward: \[y_{m}^{n+1} = 2y_m^n - y_m^{n-1} + \lambda^2\,(y_{m+1}^n - 2y_m^n + y_{m-1}^n)\] with Courant number \(\lambda = c\,\Delta t/\Delta x \le 1\).

In 1971 this needed minutes of mainframe time per second of sound. Today it runs in real time, and we build it in this course. ▶ FDTD notebook
1963 Don Buchla (San Francisco Tape Music Center) and 1964 Robert Moog (New York) build modular synthesizers from transistor circuits. Every parameter is a control voltage, so any module can drive any other.
Moog’s key choice: an exponential converter, one volt per octave, \[f = f_0 \cdot 2^{V/1\,\mathrm{V}}.\] Pitch perception is logarithmic, so a linear keyboard voltage gives equal-tempered steps, and adding voltages transposes. Buchla’s early designs were linear.
R. A. Moog, “Voltage-controlled electronic music modules,” J. Audio Eng. Soc. 13, 1965.
Start with a spectrum that has everything (a sawtooth has all harmonics at \(1/k\)), then remove what you do not want with a resonant low-pass filter, and shape it in time with envelopes. Almost every synthesizer patch since 1964 is this diagram.
Four identical one-pole low-passes in series, with the output fed back to the input: \[H(s) = \frac{1}{(1 + s/\omega_c)^4 + 4k}.\] Near \(k = 1\) it resonates, near the cutoff, and then self-oscillates.
In the clip, each note opens the filter with an envelope, and the envelope depth grows over the phrase: watch the harmonics fan out upward. The \(\tanh\) in each stage is the transistor saturation that makes it sound like the circuit.
Wendy Carlos at her Moog, BBC 1970. Switched-On Bach (1968) was one of the first classical albums to go platinum, played one voice at a time
Isao Tomita, Ballet of the Chicks in Their Shells from Pictures at an Exhibition (1975)
Minimoog, Deutsches Museum, München
| Year | |
|---|---|
| 1970 | Minimoog: the modular hard-wired into a portable box, about 12 000 sold |
| 1974 | Digitally scanned keyboards: polyphony |
| 1978 | Prophet-5: five voices, a microprocessor stores every knob position as a patch |
Robert Moog (1934–2005) with a modular system
The oscillator makes a waveform, the filter shapes its spectrum, the envelope shapes it in time: the whole of subtractive synthesis in under two minutes.
John Chowning
J. M. Chowning, “The synthesis of complex audio spectra by means of frequency modulation,” J. Audio Eng. Soc. 21, 1973.
Stanford, 1967: a vibrato made fast enough stops being heard as vibrato and becomes timbre: \[x(t) = A(t)\,\sin\!\big(2\pi f_c t + I(t)\,\sin(2\pi f_m t)\big) = A(t)\sum_{n=-\infty}^{\infty} J_n(I)\,\sin\!\big(2\pi(f_c + n f_m)t\big).\]
Two oscillators give a whole spectrum of sidebands at \(f_c \pm n f_m\), with weights set by the Bessel functions \(J_n\) of the modulation index \(I\). Let \(I\) follow an envelope and the brightness evolves like a real instrument’s, at the cost of one multiply-add per sample.

Bell: \(f_m/f_c = 1.4\), an inharmonic ratio, index decaying from 10. Brass: \(f_m = f_c\), index following the loudness envelope (Risset’s trumpet rule). E-piano: a 1:1 pair plus a high 14:1 “tine” pair with a short index decay, the recipe of the DX7’s most famous patch.
Yamaha DX7, 1983
The factory E.PIANO 1 patch
Chowning on the discovery (Stanford Historical Society)
1983: a serial protocol so any keyboard can play any synthesizer. It sends what was played, not what it sounds like.
Note On, channel 1, middle C, velocity 100
1001 0000 0011 1100 0110 0100
0x90 0x3C 0x64
31 250 baud, 10 bits per byte: 320 µs per byte, so about 1 ms per note.
Check
A ten-finger chord is 30 bytes: the last note starts 9.6 ms after the first. Audible? (It is on percussive sounds; “running status” drops repeated status bytes to reduce it.)
| Year | Protocol |
|---|---|
| 1963 | control voltages (1 V/oct, gate) |
| 1983 | MIDI 1.0 |
| 1991 | General MIDI: fixed instrument numbers |
| 1998 | MPEG-4 Structured Audio (SAOL) |
| 2002 | Open Sound Control (OSC), over networks |
| 2020 | MIDI 2.0: 32-bit resolution, bidirectional |
| Year | Machine | How it makes a drum |
|---|---|---|
| 1930 | Rhythmicon (Cowell, Termen) | photocells: polyrhythms from the overtone series |
| 1949 | Chamberlin Rhythmate | tape loops of a real drummer |
| 1959 | Wurlitzer Side Man | a contact wheel triggers tube circuits |
| 1980 | Roland TR-808 | analog synthesis, 16 steps |
| 1980 | Linn LM-1 | digital samples of real drums |
| 1981 | MCS Drum Computer | samples, programmable |
| 1983 | Roland TR-909 | analog drums, sampled cymbals, MIDI |
An 808-style beat: a swept sine, two tones plus noise, six square waves. Each voice is a few lines of code, built in lecture 7.
The drum machine is played by a sequencer, not a person: the note becomes a pattern. The 808 flopped as a fake drummer and became the sound of electro and hip hop because it was not one.
Three answers to “how do you make a drum?”, all in this course: synthesize it (808, lecture 7), record it (LM-1, lecture 8), model the membrane (lecture 9).
Mellotron · 120years
M400 tape frame: one strip per key
1963: each key presses an 8-second strip of tape against a turning capstan; releasing it lets a spring pull the tape back. No loops: hold a note longer than eight seconds and it stops.
Real flutes, choirs and strings, recorded once and replayed: sampling with analog storage. The flute that opens Strawberry Fields Forever (1967) is a Mellotron.
Inside a Mellotron M400
The Beatles, Strawberry Fields Forever
Fairlight CMI, 1979 · 120years
Its light pen: draw a waveform on screen
The problem sampling creates: a recording is one performance. Transposing it changes its duration and formants; looping it needs a seamless loop point; it cannot respond to how you play.
PPG Wave 2.2, 1982
Wolfgang Palm (Hamburg) stored 64 single-cycle waveforms per table. The oscillator plays one cycle and moves through the table while the note holds.
Our table morphs from a sine to a pulse with a moving formant; the scan goes up and back over four seconds. Memory in 1982 was the constraint, and one period is the smallest sample there is.
| Year | Device | Synthesis |
|---|---|---|
| 1982 | Commodore 64, SID chip | 3-voice analog-style subtractive, on one chip |
| 1987 | AdLib / Sound Blaster (1989), OPL chips | 2-operator FM in every PC |
| 1989 | Game Boy | pulse, wave and noise channels |
| 1995 | PC sound cards | wavetable (sample-playback) General MIDI |
| ca. 2001 | Mobile phones | FM and wavetable polyphonic ringtones |
Each generation of consumer hardware picked the synthesis method that fit its memory and multiply budget. The method choice is an engineering trade-off, then and now.
K. Karplus and A. Strong, “Digital synthesis of plucked-string and drum timbres,” Computer Music J. 7(2), 1983.
Fill a delay line of length \(N = f_s/f_0\) with noise, and feed it back through a two-point average: \[y[n] = x[n] + \tfrac{g}{2}\big(y[n-N] + y[n-N-1]\big).\] The loop keeps only the harmonics of \(f_0\); the average damps high ones faster, as a real string’s losses do.

It was found as a wavetable trick, and recognized afterwards as a physical model: the delay is the travel time along the string and back.
J. O. Smith III, “Physical modeling using digital waveguides,” Computer Music J. 16(4), 1992.
The d’Alembert solution: a string is two traveling waves, so simulate it with two delay lines and put all losses and dispersion into a few filters at the ends. Strings, bores, horns and vocal tracts, at the cost of a few operations per sample. 1994, Yamaha VL1: the first commercial physical-modeling synthesizer.
Or describe the object by its modes: a struck bar or bell is a sum of decaying sinusoids at inharmonic ratios (Adrien 1991; IRCAM’s Modalys).
Inside physical modeling: the VL1 revolution
Yamaha VL1 brass section, played live
The FDTD approach of 1971 returns at scale: Pianoteq (2006) models the whole piano, and Bilbao’s Numerical Sound Synthesis (2009) makes finite differences for instruments and rooms a field. Our DDSP piano exercise fits a model to Pianoteq notes.
Spectral modeling
Track sinusoidal peaks frame by frame, resynthesize them, and model the rest as filtered noise.
McAulay & Quatieri 1986; Serra & Smith, SMS, 1990
Granular synthesis
Sound as a cloud of short windowed grains, rearranged in time and pitch.
Gabor, Nature 1947; Xenakis; Roads 1978; Truax 1988, real time
Virtual analog
The analog circuits, simulated: alias-free oscillators and nonlinear ladder filters.
Nord Lead 1995; Stilson & Smith, BLIT, 1996; Huovilainen, DAFx 2004
Meanwhile the studio became software: Csound (1986), Max (1988), VST plugins and SuperCollider (1996). From the late 1990s, a laptop could run all of the above at once.
A. van den Oord et al., “WaveNet: A generative model for raw audio,” arXiv:1609.03499, 2016.
Model the waveform as a product of conditionals, \[p(\mathbf{x}) = \prod_{t} p(x_t \mid x_1, \dots, x_{t-1}),\] each one a 256-way softmax from a stack of dilated causal convolutions that sees thousands of past samples.
No oscillators, no filters, no physics: the network is the instrument. Also, at first, minutes of compute per second of audio.
Then, in quick succession:
| Year | Model | Idea |
|---|---|---|
| 2016 | SampleRNN | recurrent, multi-rate |
| 2017 | NSynth | WaveNet autoencoder, 300k notes |
| 2019 | GANSynth | adversarial, one shot |
| 2020 | Jukebox | songs from VQ codes |
| 2021 | DiffWave | diffusion on waveforms |
J. Engel, L. Hantrakul, C. Gu, A. Roberts, “DDSP: Differentiable digital signal processing,” ICLR 2020.
Instead of generating samples, the network outputs synthesizer parameters: \(f_0\), harmonic amplitudes, a noise filter, a reverb. The synthesizer is written in differentiable operations, so the loss on the audio trains the network through it.
Helmholtz, 157 years later
The harmonic-plus-noise model of 1990 and the additive tone of 1863, now with learned control. Far smaller than WaveNet, interpretable, and fast enough for real time.
Everyday sounds turned into instruments with Tone Transfer (Google) · ▶ Tone Transfer · ▶ DDSP examples
Neural codecs compress audio into a few streams of discrete tokens with residual vector quantization: SoundStream (2021), EnCodec (2022). Then generation works like text.
▶ MusicLM · ▶ MusicGen · ▶ Stable Audio · ▶ RAVE
A language model continues the tokens: AudioLM (2022), MusicLM (2023), the open MusicGen (Meta, 2023). Or a latent diffusion model denoises a compressed representation: AudioLDM (2023), Stable Audio (2024), Stable Audio Open (2024).
The Velvet Sundown: a band on Spotify that is 100 % AI-generated (France 24)
| Era | You control | Example |
|---|---|---|
| 1935 | the spectrum, directly | Hammond drawbars |
| 1964 | a signal graph and its knobs | Moog modular |
| 1983 | notes and velocities | MIDI into a DX7 |
| 2020 | pitch and loudness curves | DDSP timbre transfer |
| 2023 | a sentence | MusicGen, Stable Audio |
Every step up gave more sound per decision and less control over each detail. The course lives in the rows in between: models with physical or signal-processing structure, whose parameters still mean something.
Quiz
Three spectrograms from today. Name the synthesis method of each, and the feature that gives it away.
1 
2 
3 
Answer
1 Karplus–Strong: exactly harmonic partials, the high ones dying first. 2 Wavetable: a fixed pitch whose spectral peak travels and returns. 3 Subtractive: a harmonic-rich source, filter envelopes fanning upward on every note.
Five ideas
Additive, subtractive, modulation, sampling, physical modeling. Every instrument today is one of them, or a mix.
Hardware decides
Which idea wins in a given decade depends on what is cheap: dynamos, tubes, voltage control, multiplies, memory, GPUs.
Structure pays
The newest models keep rediscovering the oldest structures: harmonics, filters, delay lines. That is why we study them first.
All sound examples in this deck are synthesized by slides/make_history_media.py: read it as a preview of the course.
Photos from Wikimedia Commons; author and license per image.