By the Numbers / Synthesis

Synthesis by the Numbers

A synth note is a recipe of sine waves. Every module on the panel, from the filter to FM to unison, changes that recipe in a way you can work out with arithmetic.

Chords covers the space between notes. This page stays inside one. Every tool plays when you tap it, never before.

8.95%How far a sharp edge overshoots, with 10 harmonics or 10 million: a hand's width on a one-metre step
k = 4Feedback where a Moog ladder starts to sing on its own, like a mic howling once the PA beats the room
6.02 dBRange each bit adds. 16 bits give 65,536 steps: a 65-metre tape measure marked in millimetres
$20M+What FM earned Stanford from Yamaha by 1994, about the price of 10,000 DX7s

Every waveform is a recipe of sine waves

In 1898 the physicist Albert Michelson and his colleague Samuel Stratton built a machine that added up 80 sine waves and drew the total. That October Michelson raised a question in Nature about what such sums do at a sudden jump. Josiah Willard Gibbs answered in December, got it slightly wrong, and corrected himself the next April: right next to a jump, the sum always overshoots. Henry Wilbraham had shown the same thing in 1848, in a paper almost nobody read.

The overshoot is 8.95% of the jump. On a one-metre step, that's a hand's width. The odd part is that it never gets smaller. Add ten times as many sine waves and the spike gets ten times narrower, but it stays exactly as tall. Slide Partials up to 64 in the tool and watch the readout settle at 8.95% instead of falling toward zero.

Each sine wave in the recipe is a harmonic, a whole-number multiple of the note's frequency. The classic synth waves differ only in which harmonics they use and how loud each one is:

  • Saw: every harmonic, with harmonic n at 1/n of the fundamental, so harmonic 10 is a tenth as loud. That works out to 6 dB quieter per octave, which is why a saw sounds bright.
  • Square: only the odd harmonics, at the same 1/n. Losing the even ones gives it a hollow, clarinet-like sound.
  • Triangle: odd harmonics at 1/n², so they fade twice as fast. It sounds like a sine with a slight edge, and because it has no jump, it has no overshoot.
Fourier analysis is a change of basis. The same 2,048 samples can be described in two coordinate systems: "the value at each instant" or "how much of each sine". Think of a smoothie. You can describe it by sip (time) or by recipe (fruit amounts). To find the strawberry amount, you taste against a pure strawberry reference: multiply the signal by one sine and average. That is a dot product, a similarity score. The sines are orthogonal, meaning each reference ignores every other fruit, so you can measure each amount independently and the recipe rebuilds the smoothie exactly. The DFT matrix is just the stack of those reference sines, one per row.

Harmonics also explain why some intervals sound smooth: when two notes share harmonics, they blend. Chords covers that side.

0%overshoot of the jump

Overshoot as you add partials

Toy assumptions. Ideal Fourier partial sums, played from a wavetable built from exactly the partials drawn. Partials above half the sample rate are left out of the sound and greyed in the bars. Overshoot is measured on a 4,000-point grid next to the jump.

A filter removes harmonics, and the Moog ladder fights back

In the summer of 1964, Robert Moog was in a workshop in Trumansburg, New York, building voltage-controlled circuits for the composer Herb Deutsch. At the same time in California, Don Buchla was building modules for the San Francisco Tape Music Center, paid for partly by a $500 grant.

They took different routes. Buchla shaped the sound at the oscillator. Moog started with a bright wave and cut it down with a filter. (Some argue this east-coast, west-coast split gets overstated.) That filter is the only part of his synthesizer Moog patented. He filed in October 1966.

Turn a Moog's resonance all the way up and the filter starts to sing on its own: a sine wave at the cutoff, with nothing going in. It happens when the feedback gain, k, reaches 4. It's the same thing as a microphone howling once the PA is turned up past what the room soaks up.

The simplest filter is one resistor and one capacitor, called a one-pole lowpass. Above the cutoff it halves the signal every octave, which is 6 dB per octave. It can't resonate, because one pole can only delay a signal by a quarter of a cycle.

Moog's ladder stacks four of those stages, so it cuts four times as steeply: 24 dB per octave. Then it feeds the output back to the input, flipped upside down. At the cutoff, each stage lets through 71% of the signal and delays it by an eighth of a cycle. After four stages, a quarter of the signal is left and it's half a cycle late, which is the same as upside down. Flip it again on the way back and it lines up with the input. Multiply it by 4 and it exactly replaces what the four stages lost.

Resonance costs you bass. The low end comes through at 1/(1 + k) of its level, so at full resonance it drops to a fifth, 14 dB down. That's the thin, quiet bottom you hear when you crank resonance on a ladder. Some designs add makeup gain to cover it, and the tool has a toggle so you can hear both.

Eigenvalues as a swing. Write the ladder as four coupled equations, x′ = A·x + b·u. The matrix A is a "who pushes whom" table: each capacitor is pulled by the one before it, and the first is pulled back by the last through k. Its eigenvalues are the filter's poles: s = ωc(−1 + k1/4·ejπ(2m+1)/4). Picture a swing. The real part of an eigenvalue is friction, how fast the ringing dies; the imaginary part is how fast it swings. Raising k is pushing the swing at the right moment. At k = 4 two poles land on ±jωc: the push exactly cancels the friction.

Real transistors don't stay perfectly linear. Each pair in the ladder bends loud signals along a smooth curve called tanh instead of clipping them. That's why a self-oscillating Moog settles at a steady volume instead of getting louder forever. Antti Huovilainen's 2004 model put a tanh in every stage. The toy here keeps just the one at the input.

0 dBresonant peak

The tanh at the ladder input

Toy assumptions. The Bode plot is the linear model above, with ωc as the stage cutoff. The sound is a 110 Hz anti-aliased saw through a 2× oversampled ladder: four trapezoidal one-poles, a tanh at the input, and a one-sample delay in the feedback. That delay adds phase lag, so the toy self-oscillates early: at 48 kHz, near k = 3.97 at 100 Hz, 3.84 at 660 Hz and 3.55 at 2 kHz, instead of 4. Fixing that is what zero-delay-feedback filters are for (see History).

An envelope is a capacitor filling up

Herb Deutsch wanted notes that didn't just switch on and off. So Moog wired a doorbell button to the synthesizer and used a capacitor to hold the voltage and let it leak away slowly. Later, a second switch under each key replaced the doorbell.

In 1965 Vladimir Ussachevsky, who ran the Columbia-Princeton Electronic Music Center, asked for four stages, which he called T1, T2, Esus and T3. ARP later renamed them attack, decay, sustain and release: the ADSR you know.

A capacitor doesn't fill at a steady rate. It fills fast at first and slows down as it gets close. After one time constant, written τ, it's 63% of the way there. After five, it's within 1%.

So what does "attack 10 ms" on your synth actually mean? Makers don't agree, and manuals rarely say. It could be τ, the time to 90%, or the time to 99%. Many analog circuits charge toward a target above the peak and stop when they reach it, which gives a punchy attack in a fixed time. Pick a convention in the tool and watch the same 10 ms draw different curves. Conventions vary by maker

The curve also explains how releases sound. An exponential fade drops the same 8.7 dB every τ, and because your ear hears loudness on a log scale, that sounds like a smooth, even fade. A linear fade looks neat on a voltage plot but falls off a cliff at the end. Halfway through it's only 6 dB down, and the last tenth of the time covers everything below −20 dB. That's why linear releases seem to hang and then vanish.

Why exponential. The capacitor's current is proportional to how far it still has to go: dv/dt = (target − v)/τ. Picture filling a bathtub where the tap slows as the water rises. The rule "the rate is proportional to the gap" is the simplest linear differential equation there is, and its only solution is an exponential.

An LFO is the same idea on a loop, with no key involved, usually somewhere between 0.1 and 20 Hz. Hertz and tempo are the same scale: a 2 Hz LFO is a quarter note at 120 BPM, the conversion Rhythm works through. Speed an LFO up past about 20 Hz and it stops sounding like wobble. That's the next section.

0 mstime constant τ
Chosen curveLinear ramps, same times

Toy assumptions. Single-segment RC curves; decay and release use the same convention as attack, without overshoot. "Overshoot target" charges toward 1.5× the peak and ends the attack at the peak, so the stated time is 1.1τ; its decay and release use time = τ. Hold the button (or Space while it has focus) to gate a 220 Hz saw; release to hear the release stage.

FM: two sine waves, a whole spectrum

One evening in the autumn of 1967, John Chowning, a percussionist and composer, was using the big computer in Stanford's Artificial Intelligence Laboratory to make sounds that seemed to move around a room. He tried vibrato, then kept making it faster and deeper, far past anything a cellist could play. At some point the wobble got too fast to hear as wobble, and the note turned into a new sound with a new colour. He later called it "a discovery of the ear."

No American instrument maker wanted it, so Stanford licensed the patent to Yamaha. Meanwhile Stanford let Chowning go from its faculty. He came back in 1975 as a research associate. A couple of years later the University of California offered him a full professorship, and Stanford hired him back with tenure. He says it was the only time Stanford had let a junior professor go and then rehired him. The patent went on to earn Stanford more than $20 million. Year he was let go not documented

FM needs one number besides the two frequencies: the index, I, which says how hard the modulator pushes the carrier's pitch around. At I = 0 you hear a plain sine. Raise it and new frequencies appear on both sides of the carrier, at C ± M, C ± 2M and so on. Their levels rise and fall as I grows, and at I = 2.4 the carrier itself goes silent. Put the index on an envelope and each note starts bright and darkens as it fades. That's Chowning's brass.

The ratio C:M decides whether you hear a pitch. If it's a ratio of small whole numbers, every new frequency lands on a harmonic of one note. 1:1 gives every harmonic, like a saw. 1:2 gives only the odd ones, like a square. If it isn't, as with 1:√2, the frequencies don't line up under any note, and you get bells, gongs and clangs.

A Digitone is this idea in a box: four operators in eight algorithms, a ratio knob and an envelope on each operator, and a filter after them. The DX7 had six operators and 32 algorithms. Both actually do phase modulation, which gives the same result with sine waves and behaves better with feedback. Turning a fast pulse into a pitch is the same jump Rhythm makes with clicks.

0 HzCarson bandwidth
In phaseInverted phaseCarson band

Sideband levels Jₙ(I)

Toy assumptions. Two sine operators, phase-modulation form, no feedback. Levels are signed Jₙ(I) with reflected negative-frequency sidebands summed in. With the envelope option on, the effective index scales with loudness, so the strike starts bright and darkens as it fades.

Digital: what sampling folds back

Yamaha's DX7 went on sale in May 1983 for $1,995. Yamaha did no major advertising in its first year, and orders still passed 150,000. Moog had sold about 12,000 Minimoogs in eleven years. Yamaha's sound designers reportedly had less than four days to make all 128 presets.

For most musicians, the DX7 was the first synth that worked out every sample of its sound as numbers. That came with two rules every digital synth still lives by.

The first rule: a digital system can only make frequencies below half its sample rate. That limit is called the Nyquist frequency. The CD's 44.1 kHz rate came from videotape, of all places. Early digital recorders stored audio on video cassettes, three samples per line of the picture, and 245 lines × 60 fields × 3 samples = 44,100 samples a second. Half of that, 22.05 kHz, is just above the roughly 20 kHz limit of young ears.

A frequency above Nyquist doesn't vanish. It folds back down and lands somewhere unrelated to the note. A naive digital saw, the kind you'd write as 2·phase − 1, has a perfectly sharp edge, so its harmonics go on forever and most of them fold. Play a rising sweep and the folded copies slide down while the note goes up. That's the "birdie" sound of cheap digital oscillators. The tool walks through one note in detail.

There are two common fixes. Oversampling runs the oscillator two or four times faster, filters out what's too high, and then throws away the extra samples. BLEP methods round off each sharp edge just enough to stop the folding. Eli Brandt's minBLEP (2001) looks the rounding up in a table. Vesa Välimäki and Antti Huovilainen's polyBLEP (2007) works it out with a short formula, cheap enough to run on every voice.

The second rule is about loudness. Each extra bit doubles the number of steps a converter can represent, which adds 6.02 dB of range. Sixteen bits give 65,536 steps, like a tape measure 65 metres long, marked in millimetres.

Analog has its own problem: drift. A VCO turns a voltage into a pitch using a transistor, and transistors change with temperature. An uncompensated one drifts about 4 cents per octave for every degree it warms up. Under stage lights, 5 degrees is enough to put a note three octaves above the tuning point off by about 60 cents, more than half a semitone. That's why old synths need to warm up before you tune them, and why people now ask software emulations to add the drift back.

0 dBaliased energy, relative to the harmonics

True harmonicsPredicted aliases (naive)Measured spectrum

Toy assumptions. The spectrum is an 8,192-point FFT (Blackman-Harris window) of the selected method at the selected rate. "Aliased energy" is everything more than 4 bins from a true harmonic, so it includes folded copies above 20 kHz. Oversampling uses a 64-tap windowed-sinc decimator, so some alias leaks through its transition band. Audio runs at your device's rate (set on first tap).

0¢pitch error from warm-up

Toy assumptions. An uncompensated exponential converter at 300 K, where only the thermal voltage changes; the matched pair cancels the saturation-current drift. Compensation scales the error down linearly, as a tempco resistor or heated chip would. Real VCOs also drift from capacitors and op-amp offsets. The sound is two saws: an ideal reference and the drifted one, so the error becomes beating.

Detune: beating on purpose

In 2010 Adam Szabo, a student at KTH in Stockholm, wrote a whole thesis about one oscillator: the supersaw in Roland's JP-8000 (1996 or early 1997, sources differ), often called simply "the trance sound." He recorded the synth and took the sound apart. Roland had said it was seven saw waves. Szabo found they were spaced unevenly, weren't band-limited, and went through what looks like a highpass filter.

Two oscillators a few cents apart don't sound like two notes. They sound like one note that swells and fades as the two waves drift in and out of line. The swell rate is the difference between their frequencies. Seven cents apart at A4 (440 Hz), that's 1.8 times a second, about the pulse of a song at 107 BPM.

Cents measure a ratio, so the same detune beats faster on higher notes. It also beats faster on the higher harmonics of a single note: harmonic n is n times the frequency, so its two copies are n times as far apart. That's why a detuned saw shimmers at the top while the bottom swells slowly. You can hear the same kind of beating between two notes under "Hear the difference" in Chords.

As quoted from Szabo's thesis, the seven voices sit at about −202, −112, −34, 0, +34, +104 and +177 cents with Detune all the way up. Because the gaps are uneven, the beats never line up into one obvious pulse. And because the voices start at random points in their cycles, they add up more slowly than you'd expect: seven saws are only √7 times as loud as one, about 8.5 dB.

0 Hzbeat, outer pair

Toy assumptions. Spread is the cents of the highest voice. The JP-8000 pattern scales Szabo's seven measured offsets linearly so the highest voice sits at the spread (the real Detune fader is nonlinear) and uses the middle voices first when there are fewer than seven. Voices are anti-aliased saws with random start phase; the loudness trace uses their first 8 harmonics. No highpass.

Practice: guess first, then check

Make your guess before you press anything. The two listening tests pick a new example each round and keep score until you leave the page.

Harmonic or bell?

An FM tone with a random C:M ratio. Could you hum its pitch, or does it clang?

Listen first, then answer.

Name the slope

A 110 Hz saw through a filter sweeping from 100 Hz to 8 kHz and back, with no resonance. Is it 1, 2 or 4 stages deep?

Listen first, then answer.

Four quick guesses

You raise a square wave from 64 partials to 640. What happens to its 8.95% overshoot?

Nothing. The spike gets about ten times narrower and stays 8.95% of the jump. Only its width shrinks, which is why band-limited oscillators still ring a little at every edge.

Chowning's bell preset uses C:M = 1:1.4. Harmonic or not?

Technically harmonic. 1:1.4 is 5:7, so every partial is a multiple of C/5. With C at 220 Hz that's a 44 Hz fundamental with most of its harmonics missing, so your ear hears a clang, not a pitch.

Two saws 7 cents apart, at A2 and then at A4. How much faster is the beating at A4?

Four times faster: 1.78 Hz against 0.45 Hz. Cents are a ratio, so the gap in hertz grows with pitch, and A4 is two octaves (four times the frequency) above A2.

Going from 16-bit to 24-bit audio, how much dynamic range do you gain?

8 bits × 6.02 dB = 48 dB, from 98 dB to 146 dB for a full-scale sine. That's 256 times finer steps, far more than any room or microphone can use.

What changed

For its first twenty years the synthesizer was analog circuits, sold by the thousand. The DX7 turned it into arithmetic and sold by the hundred thousand. Most of the forty years since have gone into making that arithmetic sound like the old circuits: getting rid of aliasing, closing feedback loops without a delay, and lately, learning circuits straight from recordings.

    Open questions

    Further reading

    Trevor Pinch and Frank Trocco, Analog Days (Harvard University Press, 2002). How the Moog synthesizer came to be, told through interviews with Moog, Buchla and the musicians around them. If you want to know why synths look the way they do, start here. It reads like a story, not a spec sheet.

    John Chowning and David Bristow, FM Theory and Applications (Yamaha Music Foundation, 1986). FM explained by the man who found it, written for DX7 owners. It covers the ratios, the algorithms and the Bessel tables, and most of its patches still work on a Digitone.

    Curtis Roads, The Computer Music Tutorial (MIT Press, 1996; second edition 2023). The standard reference on digital synthesis, from oscillators and sampling to physical modeling. It's huge, but you can read any chapter on its own.

    Vadim Zavalishin, The Art of VA Filter Design (Native Instruments, free PDF). How to turn an analog filter circuit into code without the one-sample delay that throws off this page's ladder. It's math-heavy, and the clearest explanation of zero-delay feedback around.

    Mark Vail, The Synthesizer (Oxford University Press, 2014). A hands-on guide to synthesis and playing technique from a long-time Keyboard magazine writer, with plenty of history and interviews along the way.

    Sources

    Last verified: 26 November 2026

    Every tool is a deliberately small model, labelled with its assumptions. Claims where sources disagree are marked.

    MusicChordsRhythmBluesJazz HarmonyMIDIVoiceSoftwareQueuesPostgresInfrastructureThe GridData CentersEarthHurricanesEarthquakesStartupsFounder Equity