♪Music, Built

Act IX · Electric Sound

Part 52 of 68

Synthesis II: FM, Grains and Physical Models

Foundationsstarts at this level39 min of film13 chaptersprerequisites: Part 1, Part 3, Part 7, Part 8, Part 9, Part 51

What other ways are there to make a sound, and what does each cost and let a player control?

Chowning turned a vibrato up until it was faster than the note and heard bells (1967); Stanford's patent made the DX7 (1983). An ear question hears Part 9's eight-partial bell against two sine oscillators in the ratio 1 : 1.4. FM's lines at fc + k fm match Bessel's J_k(I) to 2.5e-06; the index brightens (Carson's 2(I + 1) fm), the ratio picks the series (1 : 2 odd, 5 : 7 a bell), negative sidebands fold with a sign; Chowning's brass, bell and drum; operators and algorithms, feedback that makes a sawtooth, an electric piano, bass and bell. Gabor's grains trade time for frequency (length times width about 0.85); a granular engine freezes, stretches, shifts and scatters Part 8's voice. A spectral model splits Part 7's piano into 24 tracked partials (B = 3.8e-4, the 24th 171 cents sharp) and a residual (-10 dB in the first 80 ms); a sampler stretched over four octaves fails as it must (4.1 GB for a multisampled piano). Karplus-Strong rounded is up to 33 cents out, tuned by an all-pass within 0.6; a digital waveguide equals the finite-difference string to 3e-14; a waveguide clarinet has a threshold and odd harmonics; modes are exact where the grid's partials run flat (-16 cents at partial 24, an ear question); costs and controls compared.

What you need. Part 1 for d'Alembert and the finite-difference string; Part 3 for Gabor's limit; Part 7 for the piano and Karplus-Strong; Part 8 for the reed; Part 9 for modes and bells; Part 50 for resampling. Bessel functions, the short-time Fourier transform, delay lines.

Ideas, mathematics and history
Chowning's discovery and Bessel functions, granular synthesis, sampling, Karplus–Strong, digital waveguides, modal synthesis
What we build, compute and hear
an FM engine checked against the Bessel sidebands; a grain cloud

What you will be able to do

Foundations

  • Hear FM bells against measured ones, an index sweep, three ratios, Chowning's instruments and three DX patches.
  • Hear a voice frozen, stretched, shifted and scattered by grains, and a piano note split into sines and residual.
  • Hear a sampler stretched too far, a string in and out of tune, a waveguide clarinet's threshold, and modes.

Full course

  • Expand FM by Bessel functions and check the lines; build operators, algorithms and feedback.
  • Build a granular engine and Gabor grains; track a note's partials, fit its inharmonicity and split its residual.
  • Tune Karplus-Strong by an all-pass; equate a waveguide with the finite-difference string; build a clarinet.

Research

  • Find how few parameters can match an instrument across its range, including playing it never heard.

Practice

  • Choose a synthesis method for a job by its cost, its exactness and what it lets a player control.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Foundations 25 min · Full course 37 min · Research 39 min · Practice 37 min.

  1. 0Bells from a vibratoFoundations2 min
  2. 1Frequency modulationFoundations4 min
  3. 2Ratios, indices and Chowning's instrumentsFoundations4 min
  4. 3Operators and algorithmsFoundations3 min
  5. 4Granular synthesisFoundations4 min
  6. 5Spectral modelsPractice3 min
  7. 6SamplersFoundations3 min
  8. 7Karplus-Strong, tunedFoundations3 min
  9. 8Digital waveguidesPractice4 min
  10. 9Modal synthesisPractice3 min
  11. 10What each method costs and controlsPractice2 min
  12. 11Frontier: neural and differentiable physical modelsResearch2 min
  13. Variation 52, recap and problemsAll tracks2 min

Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.

Lecture

The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.

Bells from a vibratoFoundations2 min

In 1967 John Chowning, a composer at Stanford, heard bells. First, a pair for you to judge. Two bells on the same note. One is Part 9's tuned bell, built from the eight partials measured on real church bells. The other was made with just two sine oscillators. Which one?

The second. Part 9's bell is eight oscillators, one for each partial measured on real bells: the hum, the prime, the minor-third tierce and the rest. The second is two sines. One, the carrier, at the note; the other, the modulator, at 1.4 times it, pushing the carrier's phase back and forth. Out come lines at the carrier plus and minus every multiple of the modulator, many separated by a spacing far below the nominal note: a bell, from two oscillators, and as the push dies away the lines fade from the top down, as a struck bell's do.

The story begins with a mistake that was not one. In 1967 John Chowning, a composer at Stanford, explored modulation rates in the audio range, and heard bells. His 1973 paper explained it: one Bessel function for every sideband. Stanford patented it and licensed it to Yamaha, and it became one of the most lucrative patents the university ever held. In 1983 came the DX7, six operators and sixteen voices, the sound of a decade's records. FM was cheap: a sine table and a few additions per operator, where analogue needed circuits.

Here is the plan. Frequency modulation: sidebands and Bessel functions. Ratios, indices, operators and algorithms. Granular synthesis, from Gabor's quanta to clouds. Spectral models and samplers. Physical models: Karplus-Strong, waveguides and modes. And what each method costs, and what it lets a player control.

1Frequency modulationFoundations4 min

What happens when a vibrato gets faster than the note?

Start where Chowning did, with a vibrato. A sine at four hundred and forty hertz, its pitch swung sixty hertz up and down. Now make the swing faster: four times a second, then ten, then fifty, then two hundred and twenty. Listen for the moment it stops being a wobble.

Somewhere past twenty swings a second the ear gives up following the pitch, and hears a new colour instead: a steady, rough, then bright tone. The spectrogram shows why. The single wavy line splits into separate lines, sidebands, spaced by the vibrato's rate. A vibrato faster than hearing can follow is a spectrum.

The mathematics is one line. A carrier at f c whose phase is pushed by I times a sine at f m. The index I is the swing in radians: the peak frequency deviation divided by the modulator's frequency. Expand it, and it is a sum of sines at f c plus k f m, for every whole number k, positive and negative, each with amplitude J k of I: Bessel's functions, which Friedrich Bessel tabulated in 1824 to describe the orbits of planets. So the lines sit at the carrier plus and minus every multiple of the modulator, and the index decides how far out they spread.

Check it. A carrier at a thousand hertz, a modulator at two hundred and fifty, index two. Bessel's functions predict each line's size; the measured spectrum of the computed sound agrees, line by line, to within millionths. The line at the carrier itself is only J zero of two, a fifth of full size: most of the energy has moved into the sidebands. The squared Bessel coefficients sum to one for the complex phase modulation. A real sine can have coincident folded sidebands, so its measured power need not be independent of index.

Here are the first five Bessel functions against the index. J zero, the carrier, starts at one and falls; J one, the first pair of sidebands, rises first, then J two, J three, J four, each later than the last: turning up the index brings in sidebands one pair at a time, and the sound brightens. They wobble as they go, and near an index of two point four zero five, J zero crosses zero: its own carrier term disappears, though other sidebands can coincide with that frequency. That wobble is why FM sounds can be glassy and unstable as the index moves.

Hear the index turned up from zero to eight over six seconds, with carrier and modulator both at two hundred and twenty hertz.

From a pure sine, the tone grows brighter and brassier as more sidebands arrive, the lines spreading out across the harmonics of two hundred and twenty: one knob, the index, does what a filter's cutoff did in Part 51, and with an envelope on it, does it differently on every note.

How wide does the spectrum get? John Carson, working on radio in 1922, gave the rule: about two times the index plus one, times the modulator's frequency. At two hundred and twenty hertz, index one spans about hertz, index four about , index eight about . The same mathematics carries FM radio, a voice swinging a carrier at a hundred megahertz. And a big index on a high note runs past half the sample rate and aliases, as Part 48 warned, so reducing index on high notes is one way to limit aliasing; oversampling and bandlimited methods also help. For this simple sinusoidal modulation, ratio and index describe the relative line pattern; carrier frequency sets its scale, and envelopes can move it.

2Ratios, indices and Chowning's instrumentsFoundations4 min

What decides whether FM sounds like a horn or a bell?

The index sets how bright; the ratio of carrier to modulator sets which lines. At one to one the lines fall on every harmonic of the carrier. At one to two, on the odd harmonics only, the hollow series of the clarinet. At one to one point four, which is five to seven, they are harmonics of forty-four hertz, so far below the note that no fundamental is heard: the lines sound inharmonic, a bell. At one to three point five, two to seven, they are sparse harmonics of a hundred and ten. The rule: write the ratio as whole numbers N one to N two, in lowest terms, the line-grid spacing is the carrier over N one; cancellations and hearing can change the apparent fundamental.

Where do the bell's lines between the others come from? With the modulator larger than the carrier, the lower sidebands, carrier minus k modulators, go below zero hertz. A sine at a negative frequency is the same as one at the positive frequency with its sign flipped, so they fold back. They land between the upper sidebands, and where two land on the same line their amplitudes add or cancel. That folding, at zero hertz rather than at the Nyquist frequency, makes FM's richest spectra.

Hear three of them: one to one, one to two, and one to one point four.

One to one is bright and reedy, like a muted brass. One to two is hollow, a clarinet's cousin. One to one point four sounds less clearly pitched in this example: a metallic clang. Same index, same two oscillators; only the ratio changed.

Chowning's paper did not stop at spectra; it made instruments, by moving the index through each note. Brass: one to one, with the index following the loudness envelope, so the note brightens as it swells, which is what Risset had measured on real trumpets. A bell: one to one point four, the index dying with the note, so the high lines fade first. And a drum: an inharmonic ratio, eighty to fifty-five hertz, with an index of twenty-five that decays with a twenty-millisecond time constant: a burst of noise-like sidebands, then a thud.

Here they are: four notes of brass, a bell, and four drum strokes, all from two sine oscillators.

None is a convincing copy of the real thing; each catches a few useful perceptual cues: brass that brightens as it swells, a bell whose overtones die before its hum, a drum's burst and thud. That is FM's character: cheap, expressive, and slightly unreal.

Compare FM with the last part's synthesizer. Subtractive synthesis moves brightness with a filter; FM moves it with the index. The filter takes away smoothly; the index adds sidebands that wobble in and out, the Bessel ripples. So FM is hard to program by ear: a small change of ratio or index can change everything. But it is exact, cheap, and stable in tune, with no drifting circuits. By 1983 that was enough to make it the sound of the decade.

3Operators and algorithmsFoundations3 min

How did a keyboard of 1983 make a piano from sines?

Yamaha made Chowning's two oscillators into a system. An operator is one sine oscillator with its own envelope and its own output level. When it modulates another, its level is an index; when it is heard, its level is a loudness. The DX7 had six operators per voice, wired in one of thirty-two algorithms. Every operator has its own ratio to the key and its own envelope, so each family of sidebands can rise and die on its own schedule, as a real instrument's partials do. Our engine follows the same plan: up to six operators, a choice of wirings, and feedback on one.

An algorithm is a wiring diagram. A stack: three modulates two modulates one, so the sidebands of sidebands pile up into dense spectra. Two pairs, summed: two simple FM sounds layered, as in the electric piano we are about to hear. Two modulators on one carrier: their sidebands multiply into combinations. And all carriers, no modulation at all: the DX7 could be a small additive organ too.

One wiring is strange: an operator modulating itself, its own output fed back into its phase. With no feedback it is a sine. Turn the feedback up and harmonics appear, falling smoothly: at one and a half, the second, third and fourth harmonics sit at , and decibels, close to a sawtooth's. One sine and one feedback path make the subtractive synthesizer's favourite wave.

Three patches on the Tune's first phrase. An electric piano of four operators: a pair at one to one for the body, and a pair at one to fourteen whose index dies in thirty milliseconds, for the metallic tine at the start of every note. A bass of two operators with feedback, two octaves down. And a bell at one to three point five, an octave up.

The electric piano is the sound of a thousand nineteen-eighties ballads: a soft body, a bright ping on top. The bass is round and punchy, the bell glassy. Each is a handful of numbers: ratios, levels and envelope times.

FM's success had a side effect. A DX7 voice was a hundred and fifty-five parameters, set through one slider and a small display. Few players programmed it; most used the factory sounds, which is why so many records share them: the electric piano, the bass, the tubular bells. FM then moved into computer sound cards and game consoles, the cousins of Part 44's chip music. The hard part was never the arithmetic; it was finding the knobs, as Part 51's search found.

4Granular synthesisFoundations4 min

What if a sound were made of tiny pieces?

A different idea of sound began in physics. In 1946 and 1947 Dennis Gabor, who later invented holography, described sound as a grid of acoustical quanta: short tone bursts, each a sine inside a bell-shaped window. The Fourier-series basis is indefinitely sustained; Gabor used windowed tones, and a sound is a mosaic of them. Iannis Xenakis composed with clouds of grains cut from tape in 1959, as Part 30 told. Curtis Roads ran the first computer granular synthesis in 1975, and Barry Truax made it run live in 1986. Granular synthesis makes sounds by scattering thousands of grains.

Every grain trades time for frequency. A grain five milliseconds long, a click with a hint of pitch, spreads over hertz. Twenty milliseconds: hertz. Eighty milliseconds: , a clear tone. Length times width stays near : a width-duration product under these chosen width definitions; the uncertainty principle gives a lower bound when widths are defined as standard deviations. A grain's length decides whether you hear its pitch, or only its click.

Our granular engine reads grains out of a recorded sound. Five knobs: where in the source to read, how many grains a second, how long each is, how fast it is read, and how much randomness to add. Each grain is a short window read at its position and speed, shaped by a Hann window and added in. Because the read position and the playback time are independent, time and pitch come apart, as PSOLA's did in Part 50. Regular starts give a steady tone; random starts, a Poisson cloud, give a texture.

Hear it on Part 8's voice singing the Tune's first phrase. Then the voice frozen on one vowel, every grain read from the same place. Then stretched to four times its length. Then a fifth higher at the same speed. Then scattered into a cloud, positions and pitches at random.

The frozen vowel hangs in the air like a held organ note. The stretch keeps the pitch while time slows, with a faint shimmer where grains overlap. The shift raises the pitch without speeding up. The cloud dissolves the melody into a swarm: the same grains, no longer in order.

Here is the cloud, half of its grains drawn. Each dot is one grain: when it played, across, and where in the voice it was read, up. Played in order, the dots would lie on the dashed line. Scattered by more than half a second, and coloured by pitch, they make a band instead of a line: the melody is still there, smeared, which is why the cloud still sounds faintly like the Tune.

Grains are everywhere now. Granular time-stretching is in many audio tools: a loop played at a new tempo, its pitch kept. Paulstretch, mentioned in Part 50, uses overlapping spectral windows with randomized phases. Granular instruments freeze, scrub and scatter any recording in real time. The cost is smearing: a drum hit read by overlapping grains blurs, as the phase vocoder's did. Grains cut a sound in time; the next idea cuts it by frequency, into sines and the rest.

5Spectral modelsPractice3 min

Can a recording be turned back into knobs?

The spectral idea runs additive synthesis backwards. In 1986 Robert McAulay and Thomas Quatieri tracked the peaks of a sound's spectrum, frame by frame, as moving sines. In 1990 Xavier Serra and Julius Smith split a sound into sines for what is tonal and shaped noise for the rest: spectral modelling synthesis. A recording becomes a table: each partial's frequency and amplitude over time, plus a residual. And the table is a set of knobs: change any number and resynthesize. It is Part 51's additive synthesis, with the curves measured instead of drawn.

Take middle C on Part 7's computed piano and track its partials. Here are the first twelve, their levels over two seconds. Each dies at its own rate, the upper ones first. These are exactly the curves Part 51 said additive synthesis needs, measured here instead of drawn.

The tracks also measure the frequencies. A piano's partials are not harmonics: each runs sharper than k times the first, until the twenty-fourth is cents sharp. Fit the stiff string's law, and the inharmonicity coefficient comes out at times ten to the minus four: the stiffness of Part 7's string, read back out of its sound. This is why pianos are tuned stretched, as Part 6 found.

Hear the note taken apart. The piano; its twenty-four tracked partials resynthesized as sines; the residual, everything not near a partial, raised twelve decibels; and the sines again with every partial moved onto an exact harmonic.

The sines alone are nearly the piano, but softer at the start. The residual is the missing start: a knock, the hammer, decibels below the note in its first eighty milliseconds and then almost nothing. And made harmonic, the piano loses a little of its shimmer and turns plainer, nearer an electric piano: the stretched partials were part of its voice.

A spectral model is a workshop. It can stretch time or shift pitch by moving the tracks rather than the samples. It can morph two instruments by interpolating their tables, partial by partial. Melodyne's note editing, from Part 50, and many audio codecs, Part 58's subject, use the same split into tonal and noisy parts. Its weak spots are attacks, which are not sines, and dense mixtures, where the peaks overlap. Or skip the model altogether: store the recording itself, and play it back.

6SamplersFoundations3 min

Why not just record every note?

The plainest way to make an instrument's sound is to record it. In 1963 the Mellotron put a strip of tape behind every key, eight seconds long. In 1979 the Fairlight sampled into memory, in 1981 the Emulator, and then came Akai's samplers, the backbone of hip-hop in Part 40. One recording, read faster or slower, plays every pitch: resampling, from Part 50. The catch: faster means shorter, and every resonance moves with the pitch. A voice read faster becomes a chipmunk; a piano read slower becomes a different, bigger piano.

Hear it. Middle C on Part 7's piano, recorded once, then played back two octaves down; then the piano computed at that note. Then the same recording two octaves up, and the piano computed there. Listen for what the recording gets wrong.

Two octaves down, the recording is slow and dark: the hammer's knock becomes a dull thud and the decay lasts seconds, where the low C computed directly rings with its own, brighter attack. Two octaves up it lasts seconds, a toy plink, where the high C computed directly is short but crisp. One recording cannot be an instrument's whole range.

Why does it fail? Reading faster scales every frequency: the harmonics, but also the body's resonances and the attack's noise. Many body resonances remain approximately fixed while played pitch changes; the source moves, the filter stays, as Part 8 put it. And real decay times change with pitch in their own way, not in proportion. So within a few semitones resampling is fine; over octaves it is a different instrument. The cure is brute force: record more.

Brute force has a name: multisampling. Record a note every few semitones and stretch each over only its own small zone of keys, so no recording moves far. Then record each note at several strengths, velocity layers, because a piano struck hard is not a loud piano struck softly: it is brighter, as Part 7 measured. Add the release of each key, the pedal's resonance and the hammer's noise, all as separate recordings.

What does brute force cost? Eighty-eight keys, eight layers, stereo, twenty seconds each, at forty-eight kilohertz and three bytes a sample: about gigabytes, before the pedal, release and room recordings that real libraries add, which run to tens of gigabytes. A physical model of the same piano is a few kilobytes of numbers, and a great deal of arithmetic. Samplers trade arithmetic for memory; physical models trade memory for arithmetic. The rest of this part is the second trade.

7Karplus-Strong, tunedFoundations3 min

Why does the simplest string go out of tune at the top?

Physical models start with the simplest one, met in Part 7. Fill a delay line one period long with noise. Send it round and round, and on each pass average neighbouring samples, so the high frequencies die faster than the low, as on a plucked string. Kevin Karplus and Alex Strong published it in 1983: a plucked string in a few lines of code, a remarkably economical plucked-string algorithm.

But the basic loop cannot play in tune. Its period is a whole number of samples, plus half a sample for the averaging, so the pitch is the sample rate over N plus a half, and N must be a whole number. At middle C, N is about a hundred and eighty, and rounding costs a few cents; but at C seven, N is under twenty-three, and the error reaches cents, a third of a semitone. Add an all-pass filter that supplies the missing fraction of a sample, and every note lands within of a cent.

The fix is Part 49's first-order all-pass. It passes every frequency at full strength and only delays it, and at low frequencies the delay is one minus c over one plus c samples. Choose c to supply the missing delay at low frequencies; a first-order all-pass has frequency-dependent delay. David Jaffe and Julius Smith added this in the same year, 1983, with controls for decay time and brightness, and turned a trick into an instrument.

Hear the Tune's first phrase two octaves above middle C, first with the delay rounded, then tuned.

With the delay rounded, the melody's intervals are subtly wrong, each note off by a different amount; tuned, it sits in place. The same rounding generally produces smaller pitch errors on bass notes. At the top of the keyboard it is the difference between an instrument and a toy.

One loop goes a long way. A loss factor sets the decay time, and a gentler average keeps more highs. A comb for the pluck position, Part 1's missing harmonics, and a pick's brightness shape the noise before it starts. A soft clipper inside the loop gives distortion that rings with the string: an electric guitar. But what exactly is the loop? The string's travelling waves, which d'Alembert found in 1747. The next chapter makes that exact.

8Digital waveguidesPractice4 min

Can a string be computed with two delay lines?

Part 1 met d'Alembert's solution of the string: any motion is two waves of fixed shape, one travelling right and one left. Store each as a row of numbers, a rail. Split the plucked shape in half between them. Every sample, move the right-going rail one place right and the left-going rail one place left; at each fixed end, the arriving wave goes back inverted. The string is the sum of the two rails. Julius Smith called this a digital waveguide, in the 1980s, and it is Karplus-Strong's loop made exact.

Check it against Part 1's finite-difference string, the beads pulling on their neighbours. The same ideal string, plucked at a fifth, read at the same pickup: the bead simulation in grey, the waveguide in colour on top. Over half a second they differ by at most times ten to the minus fourteen: rounding. At its exact rate the finite-difference scheme is exact for the ideal string, and so is the waveguide; they are the same mathematics. But the waveguide does it with two moving rails, which a computer does by moving a pointer, not the data.

Waveguides model air columns too. A clarinet: the player's mouth pressure, the reed, the bore, the bell. The bore is a delay line; the bell sends the wave back inverted and a little duller. The reed is Part 8's valve: the pressure across it decides how much of the returning wave it lets back. Michael McIntyre, Robert Schumacher and Jim Woodhouse showed in 1983 that a nonlinear junction like this, on a linear delay, can explain self-sustained oscillation in a simplified wind model. Closed at the reed and open at the bell, the bore is a quarter-wave pipe, so only odd harmonics survive, as Part 8 found.

The model behaves like a clarinet with two behaviours that emerge from its deliberately chosen reed and bore equations. Blow gently and nothing sounds; the tone starts only above a threshold, here between and of the pressure that closes the reed. Blow too hard, above about , and the reed is pushed shut and the sound stops, as a beginner discovers. And the spectrum: the second, fourth and sixth harmonics more than sixty decibels down, the third at and the fifth at .

Hear it: first a slow crescendo, the mouth pressure rising from well below the threshold to near the top; then the Tune's first phrase.

Silence, a breathy hiss, and then the note blooms out of nothing as the pressure crosses the threshold, later than the steady threshold because the oscillation needs time to grow. A basic velocity-layer sampler does not generate this feedback threshold from a reed equation; a sampler could still reproduce recorded or programmed threshold behaviour.

Waveguides went to market. Stanford licensed them to Yamaha too, and the VL1 of 1994 played breath-controlled winds. They also model horns, flutes, bowed strings and rooms; Part 49's feedback delay networks are cousins. But they are exact only for waves that keep their shape: stiffness and frequency-dependent loss need filters in the loop, and a stiff piano string needs many all-passes to spread its waves correctly. For objects that are not tubes or strings, another route is better: their modes.

9Modal synthesisPractice3 min

What if an instrument is just its modes?

The third physical route uses modes. Any linear vibrating object moves as a sum of modes, shapes that each vibrate at one frequency, as Parts 1 and 9 showed. Strike it, and each mode rings as a damped sine, with its own frequency, its own decay, and its own share of the strike. So the sound is a bank of resonators, Part 51's struck drum many times over. The modes can come from theory, from finite elements like Part 9's bars, or from a measured recording. IRCAM's Mosaic and Modalys built instruments this way in the 1990s, joining objects at their points of contact.

Take the stiff, damped string of Part 7. As modes, its pickup signal is a sum over n of the pluck's share of mode n, the mode's shape at the pickup, a cosine at the mode's frequency, and a decay. The frequencies follow the stiff string's law, each a little sharper than n times the first, and higher modes die faster. For the retained modes of this linear equation, frequencies are evaluated directly, avoiding grid dispersion; truncation, sampling and floating-point errors remain.

Now compare with Part 7's bead-by-bead simulation of the same string, which steps a grid of intervals forward at forty-eight kilohertz. Below the Courant limit the scheme is no longer exact: its waves travel slightly too slowly at high frequencies, so each partial comes out a little flat, by under a cent at the bottom and cents by partial . The two signals differ by decibels overall. A finer grid would shrink it; the modal sum has no grid to refine.

Your turn. One plucked string, twice: once as a sum of modes, once bead by bead on a grid. Which was computed on the grid? Listen to the top of the sound.

The second. If you could not tell, that is the point: the grid's errors sit in the highest partials, which die first, and differ from the exact sum by a few cents to a few tens. The difference may be subtle in this example; we have not measured listener discrimination. The bead simulation's virtue is elsewhere: it handles what modes cannot, like a string that hits a fret or stretches as it swings, where the equation is no longer linear.

Modes have a clear profile. They are exact and easy to control: move one mode's frequency or decay, and nothing else changes. But they need the object to be linear and its modes known; nonlinear joints and collisions require additional coupling or contact models. Games and films strike thousands of virtual objects this way; Kees van den Doel and Dinesh Pai made contact sounds from modes in 1998. And the costs differ: a mode per partial, a grid point per bead, a delay line per wave. Which to choose depends on what you need to control.

10What each method costs and controlsPractice2 min

Which method for which job?

Time every method for one second of sound, in this part's code, on this computer. In this cached implementation benchmark, Karplus-Strong takes, milliseconds, using one delay line and simple filtering. Two-operator FM uses a few sines. At the other end, forty sines summed directly take milliseconds, sixty decaying modes , the bead simulation . These recorded timings are implementation-specific and can change with hardware, compilation and load, but multiply by sixteen voices and a dozen tracks, and the order matters, as it did when a DX7 had to run on 1983's chips.

Cost is half the story; the other half is what a player gets to turn. Additive and modal synthesis offer a knob for every partial: complete, and overwhelming. Subtractive offers a few musical ones: cutoff, resonance, envelopes. FM offers ratios and indices, powerful and unintuitive. Granular synthesis offers time itself. And the physical models offer the physics: breath, bow and string, the things a player of the real instrument already knows how to control.

So which method for which job? To copy a recorded instrument exactly within its range, sample it. To play an instrument that reacts like one, to breath, bow or hammer, model its physics. To design sounds nobody has heard, use subtraction, FM, wavetables or grains. To transform a recording, use grains and spectral models. And real instruments in software mix them all: a sampled attack, a modelled resonance, a filtered tail.

11Frontier: neural and differentiable physical modelsResearch2 min

Can a model be learned from a recording?

Every method of this part is now being learned. Make it differentiable, as Part 51's frontier described, then fit it to recordings by gradient descent. DDX7, from Franco Caspe, Andrew McPherson and Mark Sandler in 2022, is a network that plays a DX7-style FM engine to imitate real instruments. Rodrigo Diaz and colleagues in 2023 learned an object's modes from its shape. DDSP-Piano, from Lenny Renault, Rémi Mignot and Axel Roebel, fits inharmonic partials and a residual to a real piano, much as our spectral chapter did. Each keeps the synthesizer's structure, so its knobs still mean something.

There is a spectrum of models. Black boxes: a network maps controls to sound; internal features are less directly tied to physical parameters, though controls and realism vary, Part 66's subject. Grey boxes: a physical or FM core with learned parts, such as a reed's curve or a body's resonances. The test is the hard one: does the model react correctly to playing it never saw, beyond the training recordings? Part 7's string and this part's clarinet are white-box models with explicit equations and simplifying assumptions. The frontier runs between them.

A research problem to end on. Record an instrument across its range and dynamics, and hold out some notes and playing styles. Fit a sampler, a differentiable FM engine, a modal model and a waveguide to the rest. Compare them on the held-out playing, by blind listening, against their size in bytes. The question: how few parameters can match an instrument across its range, including playing it never heard? An answer would rank this part's methods by what they really know.

Variation 52, recap and problemsAll tracks2 min

Every part ends by doing something to the Tune with what it built. Here, its first two phrases on the FM electric piano and the next two on FM bells; then the whole dissolved into grains, scattering in time and pitch and gathering again; then one clean note.

Row fifty-two of the ledger. FM's lines match Bessel's functions to within millionths, and the dissolve used grains in ten seconds.

What did we find? FM puts lines at the carrier plus and minus multiples of the modulator, with sizes given by Bessel's functions: the ratio picks the lines, the index the brightness. Operators and algorithms made FM an instrument, and feedback can make sawtooth-like spectra. Grains trade time for frequency, and free time from pitch. Spectral models turn a recording into knobs, while samplers keep the recording. Tuned Karplus-Strong, waveguides and modes compute physics, each with its own exactness and cost. And the methods differ most in what they let a player control.

Five problems. One to compute, one to prove, one for your ears, one to build, and a research problem, marked with a star. Solutions are in this part's notes. Pause here.

Where does this come back? Next time, in MIDI and the sequencer, which play these engines. In recording and mixing, with sampled and modelled instruments in the session. In codecs, which split sound into sines and noise. In source separation, taking a mix apart as the spectral model took a note apart. And in generative audio, with differentiable and neural synthesizers.

And in practice. Sound designers move the FM index with an envelope and keep ratios simple for clear pitch. Composers freeze, stretch and scatter recordings with grains. Instrument makers sample the attack and model the resonance. And game audio strikes objects through their modes, thousands at once.

The books and papers this part follows. The full list, with notes, is in the README.

Where it goes next. MIDI and the sequencer in Part 53; instruments in a session in Part 56; sines and noise in codecs in Part 58; separation in Part 64; neural and differentiable synthesizers in Part 66.

Key results

The part's results in one place, for revision.

FM\(\displaystyle \sin(\omega_c t + I\sin\omega_m t) = \sum_k J_k(I)\sin((\omega_c + k\omega_m)t)\)
Carson\(\displaystyle B \approx 2(I + 1) f_m\)
Gabor\(\displaystyle \Delta t\,\Delta f \approx \text{const}\)
Tuned loop\(\displaystyle c = (1 - \Delta)/(1 + \Delta)\)
d'Alembert\(\displaystyle u = r(x - ct) + l(x + ct)\)

Try it

Lab 52 · FM, grains and physical models, computed

Check FM's lines against Bessel's functions, stretch a sound with grains, tune a Karplus-Strong string, and find the pressure at which a waveguide clarinet starts to sound.

Figure produced by Lab 52: FM, grains and physical models, computed
Produced by the lab below, seed 0, in 0.2 s.
python -m videos.music.labs 52 needs numpy, scipy, matplotlib · download lab52.py · source on GitHub
FM 220 Hz, ratio 1.4, index 3: lines below 5 kHz                  25; largest |predicted - measured| 7.86e-10
granular stretch: grains used, length in and out (s)              216; 1.2 -> 4.8
tuned Karplus-Strong at C5, C6, C7: error (cents)                 -0.00, -0.09, +0.61
clarinet: the tone starts at a mouth pressure of                  0.65 (1 closes the reed)
ear problem: the last three are harmonic or bells (listen first)  bell, bell, bell

FM's lines are Bessel functions exactly; grains free time from pitch; an all-pass tunes a string to a fraction of a cent; a reed on a delay line has a threshold no one programmed.
The code (70 lines; it asserts its own result)
"""Lab 52: FM, grains and physical models, computed: Bessel's sidebands, a granular stretch, a tuned string, and a clarinet's threshold."""

import numpy as np

from videos.coursekit import labs
from explainer.music.monochord import SR, Clip, concat
from explainer.music.monochord import synth2 as F

TITLE = "FM, grains and physical models, computed"
GOAL = ("Check FM's lines against Bessel's functions, stretch a sound with grains, tune a Karplus-Strong string, and find "
        "the pressure at which a waveguide clarinet starts to sound.")
TASKS = [
    "Change RATIO and INDEX. Which ratios give a clear pitch, and at what index does the carrier's line vanish?",
    "Change GRAIN_MS and DENSITY in the stretch. When do you hear the grains themselves, and when a smooth stretch?",
    "Change BELL (the clarinet's bell filter) and find how the threshold pressure and the odd harmonics move.",
]
FC, RATIO, INDEX = 220.0, 1.4, 3.0
GRAIN_MS, DENSITY = 60.0, 50.0
BELL = 0.5


def run(seed=0):
    rng = np.random.default_rng(seed)
    lab = labs.Lab()
    y = F.fm(FC, RATIO * FC, INDEX, SR)
    pred = [(f, a) for f, a in F.sidebands(FC, RATIO * FC, INDEX, 12) if 0 < f < 5000]
    meas = F.line_levels(y, [f for f, _ in pred])
    err = float(np.max(np.abs(meas - np.abs([a for _, a in pred]))))
    lab.row(f"FM {FC:g} Hz, ratio {RATIO:g}, index {INDEX:g}: lines below 5 kHz", f"{len(pred)}; largest |predicted - measured| {err:.2e}")
    t = np.arange(int(1.5 * SR)) / SR
    src = np.sin(2 * np.pi * 330 * t) * np.exp(-t / 0.8) + 0.3 * np.sin(2 * np.pi * 660 * t) * np.exp(-t / 0.4)
    st = F.grains(src, 4 * 1.2, lambda tt: tt / 4, density=DENSITY, grain_ms=GRAIN_MS, seed=seed)
    lab.row("granular stretch: grains used, length in and out (s)", f"{len(st['grains'])}; 1.2 -> 4.8")
    errs = []
    for m in (72, 84, 96):
        f = 440 * 2 ** ((m - 69) / 12)
        errs.append(1200 * np.log2(F.measured_pitch(F.ks_tuned(f, 0.6), guess=f) / f))
    lab.row("tuned Karplus-Strong at C5, C6, C7: error (cents)", ", ".join(f"{e:+.2f}" for e in errs))
    ps = np.round(np.arange(0.3, 1.31, 0.05), 2)
    rms = [float(np.sqrt(np.mean(F.clarinet(220.0, 0.4, pressure=float(p), breath=0.0, normalize=False, bell=BELL)[int(0.25 * SR):] ** 2))) for p in ps]
    on = ps[int(np.argmax(np.array(rms) > 0.1))]
    lab.row("clarinet: the tone starts at a mouth pressure of", f"{on:.2f} (1 closes the reed)")
    assert err < 1e-3 and max(abs(e) for e in errs) < 1.0

    # sound: the FM tone, the stretch, the clarinet; ear problem: FM at random ratios, harmonic or bell
    clips = [Clip(0.3 * y[: SR] * np.exp(-np.arange(SR) / SR / 0.6), SR), Clip(0.5 * st["y"] / np.max(np.abs(st["y"])), SR),
             Clip(0.4 * F.clarinet(220.0, 1.5, bell=BELL), SR)]
    answers = []
    for i in range(3):
        r = [1.0, 2.0, 1.4, 1.41421, 3.0, 2.76][int(rng.integers(0, 6))]
        n = int(1.2 * SR)
        e = np.exp(-np.arange(n) / SR / 0.6)
        clips.append(Clip(0.3 * e * F.fm(262.0, r * 262.0, 4.0 * e, n), SR))
        answers.append("harmonic" if r in (1.0, 2.0, 3.0) else "bell")
    lab.audio = concat(clips, gap=0.6)
    lab.row("ear problem: the last three are harmonic or bells (listen first)", ", ".join(answers))

    fig, (ax1, ax2) = labs.figure(2)
    ax1.stem([f for f, _ in pred], [abs(a) for _, a in pred], linefmt="C1-", markerfmt="C1o", basefmt=" ")
    ax1.plot([f for f, _ in pred], meas, "k.", label="measured")
    ax1.set_xlabel("Hz")
    ax1.set_ylabel("|J_k(I)|")
    ax1.legend(fontsize=7)
    ax2.plot(ps, rms, "o-", color=labs.GOLD)
    ax2.set_xlabel("mouth pressure")
    ax2.set_ylabel("RMS")
    lab.fig = fig
    lab.note = ("FM's lines are Bessel functions exactly; grains free time from pitch; an all-pass tunes a string to a "
                "fraction of a cent; a reed on a delay line has a threshold no one programmed.")
    return lab

Now change it

  1. Change RATIO and INDEX. Which ratios give a clear pitch, and at what index does the carrier's line vanish?
  2. Change GRAIN_MS and DENSITY in the stretch. When do you hear the grains themselves, and when a smooth stretch?
  3. Change BELL (the clarinet's bell filter) and find how the threshold pressure and the odd harmonics move.

Problems, with solutions

Try each problem before opening its solution.

  1. Compute. A carrier at 400 Hz is modulated at 100 Hz with index 1. Using Carson's rule, how wide is the spectrum, and which lines does it hold?

    Solution

    B ≈ 2(I + 1) fm = 2 × 2 × 100 = 400 Hz, so from about 200 to 600 Hz: the lines at 200, 300, 400, 500 and 600 Hz (k = −2 … 2), with sizes J₂(1) = 0.11, J₁(1) = 0.44, J₀(1) = 0.77, 0.44, 0.11. The next pair, J₃(1) = 0.02, is about 2 per cent in amplitude; Carson’s bandwidth is approximate, not a strict cutoff.

  2. Prove. Prove the coefficient identity for complex phase modulation: Σ J_k(I)² = 1.

    Solution

    The generating function of the Bessel functions is e^{iI sin θ} = Σ_k J_k(I) e^{ikθ}. Its modulus is 1 for every θ, so by Parseval's theorem over one period, 1 = (1/2π) ∫|e^{iI sin θ}|² dθ = Σ_k |J_k(I)|². This proves unit power for the complex exponential. A real sine's power can vary with index when folded sidebands coincide.

  3. Ear. The lab plays FM tones at random ratios; say which are harmonic and which are bells.

    Solution

    The lab prints them. Whole-number ratios (1, 2, 3) give a clear pitch; irrational or awkward ratios (√2, 1.4, 2.76) give lines that are harmonics of a very low fundamental or of none, heard as a clang.

  4. Build. Add a bow to the waveguide string (a friction curve at the contact point) and find its threshold.

    Where to look. Split each rail at the bow point; there the string's velocity v and the bow's velocity v_b give a friction force from a curve such as μ(v − v_b) = μ_d + (μ_s − μ_d)/(1 + |v − v_b|/v₀) (Smith; Woodhouse). Solve the junction each sample (the force and the velocity together), inject the force into both rails, and sweep bow force and speed: Part 7's Schelleng wedge should appear.

  5. ★ How few parameters can match an instrument across its range, including playing it never heard?

    Where the frontier is. Record an instrument across its range and dynamics, hold out notes and playing styles, fit a sampler, a differentiable FM engine (DDX7), a modal model and a waveguide to the rest, and compare blind on the held-out playing against model size.

Notes and sources

Sources

  • J. M. Chowning, "The synthesis of complex audio spectra by means of frequency modulation", JAES (1973); J. Chowning and D. Bristow, FM Theory and Applications (1986); J. R. Carson, "Notes on the theory of modulation", Proc. IRE (1922).
  • D. Gabor, "Theory of communication" (1946) and "Acoustical quanta and the theory of hearing", Nature (1947); C. Roads, Microsound (2001); B. Truax, "Real-time granular synthesis with a digital signal processor", CMJ (1988).
  • R. J. McAulay and T. F. Quatieri, "Speech analysis/synthesis based on a sinusoidal representation", IEEE TASSP (1986); X. Serra and J. O. Smith, "Spectral modeling synthesis", CMJ (1990).
  • K. Karplus and A. Strong, "Digital synthesis of plucked-string and drum timbres", CMJ (1983); D. A. Jaffe and J. O. Smith, "Extensions of the Karplus-Strong plucked-string algorithm", CMJ (1983).
  • J. O. Smith, "Physical modeling using digital waveguides", CMJ (1992), and Physical Audio Signal Processing (2010); M. E. McIntyre, R. T. Schumacher and J. Woodhouse, "On the oscillations of musical instruments", JASA (1983); P. R. Cook and G. P. Scavone, the Synthesis ToolKit (1999 onward).
  • J.-M. Adrien, "The missing link: modal synthesis", in Representations of Musical Signals (1991); K. van den Doel and D. K. Pai, "The sounds of physical shapes", Presence (1998); S. Bilbao, Numerical Sound Synthesis (2009).
  • F. Caspe, A. McPherson and M. Sandler, "DDX7: differentiable FM synthesis of musical instrument sounds", ISMIR (2022); R. Diaz, B. Hayes, C. Saitis, G. Fazekas and M. Sandler, "Rigid-body sound synthesis with differentiable modal resonators", ICASSP (2023); L. Renault, R. Mignot and A. Roebel, "DDSP-Piano: a neural sound synthesizer informed by instrument knowledge", JAES (2023).
About this partfrom its README

Part 52 of a sixty-eight-part course in music (see the series plan and the syllabus), the fifth part of Act IX, Electric Sound. In 1967 John Chowning explored audio-rate modulation and synthesized bell-like sounds. The mathematics is a Bessel function per sideband, the patent made Stanford a fortune, and the DX7 (1983) put the sound on a decade's records. This part builds FM, then the other ways out of the oscillator: grains, spectral models, samplers, and the physical models (Karplus–Strong tuned, digital waveguides, modes), each checked against Part 1's and Part 7's finite-difference string. The tools are Monochord's (explainer/music/monochord/synth2.py); every sound is computed.

  • Bells from a vibrato. An ear question (Part 9's bell from its eight measured partials, or two sine oscillators in the ratio 1 : 1.4: which used two?); the two spectra; Chowning, Stanford's patent and the DX7; the plan.
  • 1. Frequency modulation. A vibrato speeding up from 4 to 220 Hz, heard with its spectrogram; one line of mathematics (lines at fc + k fm sized J_k(I)); predicted and measured (fc 1000, fm 250, I = 2: agreement to 2.5 millionths); Bessel's functions (the carrier vanishes at 2.405); the index swept from 0 to 8, heard; Carson's rule.
  • 2. Ratios, indices and Chowning's instruments. Four ratios and their series (1 : 2 odd; 5 : 7 a bell; 2 : 7 sparse); sidebands below zero fold with a sign; three ratios heard; brass, bell and drum (1973); the three heard; FM against the filter.
  • 3. Operators and algorithms. Operators; four algorithms; an operator modulating itself (feedback 1.5: the 2nd, 3rd and 4th harmonics at −7.1, −11.2, −14.3 dB, near a sawtooth's); an electric piano, a bass and a bell, heard; the sound of a decade (155 parameters a voice).
  • 4. Granular synthesis. Gabor's acoustical quanta; three grains (5, 20 and 80 ms: 176, 43 and 10 Hz wide; length times width about 0.85); a five-knob engine; Part 8's voice frozen, stretched four times, raised a fifth and scattered into a cloud, heard; the cloud grain by grain; grains at work.
  • 5. Spectral models. Sines and the rest (McAulay and Quatieri; Serra and Smith); Part 7's piano note partial by partial; its stretched partials (the 24th 171 cents sharp; B = 3.8 × 10⁻⁴); the note as sines, residual (−10 dB in the first 80 ms, −77 after 0.3 s) and made harmonic, heard; what the model is for.
  • 6. Samplers. The Mellotron to Akai; one recording over four octaves against the piano computed there, heard (8.4 s and 0.53 s long); why one recording is not enough; multisampling and velocity layers; what brute force costs (about 4.1 GB for one multisampled piano).
  • 7. Karplus–Strong, tuned. The loop; tuning note by note (rounded: up to 33 cents out at C7; with Jaffe and Smith's all-pass: within 0.6 of a cent); the all-pass; in and out of tune, heard; more from one loop.
  • 8. Digital waveguides. d'Alembert's two rails; against the finite-difference string (equal to 3 × 10⁻¹⁴); a clarinet as a waveguide (McIntyre, Schumacher and Woodhouse); its threshold (between 0.60 and 0.65 of the reed's closing pressure, shut again above 1.0) and odd harmonics; a crescendo and the Tune, heard; waveguides at work (the VL1).
  • 9. Modal synthesis. An instrument as its modes; the stiff string as modes; where the bead simulation errs (its partials flat, 16 cents by the 24th; −21 dB overall); an ear question (modes or beads?); modes at work.
  • 10. What each method costs and controls. One second of sound timed for nine methods; what a player gets to turn; which method for which job.
  • 11. Frontier: neural and differentiable physical models. DDX7, differentiable modal resonators, DDSP-Piano; black, grey and white boxes; ★ research problem: how few parameters can match an instrument across its range, including playing it never heard?
  • Variation 52, recap and problems. The Tune on FM keys and bells, dissolved into grains and back; the ledger (FM's lines within 0.000002 of Bessel's; 2,793 grains in ten seconds); what we found; five problems; where it comes back; in practice; references; Part 53.
What is computed and built

python -m videos.music.music52.compute (under a minute; the loops are compiled by numba when it is installed) fills .cache/music52/.

Item What it computes Checked against
hook, vib2fm, bessel, ratios, chowning FM tones, lines, sweeps; Chowning's three instruments Bessel's functions (tests)
dx four-operator patches; feedback's harmonics the simple FM formula (tests)
gabor, grains Gaussian grains; a granular engine on Part 8's voice Gabor's uncertainty (tests)
spectral, sampler partial tracks, inharmonicity, residual; one sample over four octaves synthetic partials (tests)
ks, waveguide, clarinet, modal tuned Karplus–Strong; waveguides; a reed; modes the finite-difference string (tests)
costs, tune52 timings; Variation 52 —

Monochord's tools are held in tests/music/test_synth2.py; this part's claims and clips in tests/music/test_music52.py.

Sounds. FM, granular and spectral sounds are labelled synthesized; Part 7's piano, Part 8's voice, Part 9's bell, Karplus–Strong strings, the waveguide clarinet and the modal string are labelled physical model.

What the models are, and are not. The clarinet has a reed with no mass (a memoryless curve), a cylindrical bore of whole samples at four times the rate, and a one-pole bell; no tone holes, no register key. The spectral model tracks a single note's harmonic partials, not arbitrary peaks. The costs are this part's Python and numba on one computer; they rank methods only roughly.

Companion material in this repository

The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
  1. Hook: an ear question (a measured bell or two oscillators?); the two spectra; Chowning, the patent, the DX7; the plan.
  2. Frequency modulation: a vibrato speeding up, heard; the formula; predicted and measured lines; Bessel's functions; the index swept, heard; Carson's rule.
  3. Ratios, indices and Chowning's instruments: four ratios; sidebands below zero; three ratios heard; brass, bell and drum; the three heard; FM against the filter.
  4. Operators and algorithms: operators; four algorithms; feedback's sawtooth; three patches heard; the sound of a decade.
  5. Granular synthesis: Gabor's quanta; three grains; the engine; a voice four ways heard; the cloud; grains at work.
  6. Spectral models: sines and the rest; a piano note's partials; its stretched partials; the note in pieces heard; uses.
  7. Samplers: recordings as instruments; one recording over four octaves heard; why not enough; multisampling; the cost.
  8. Karplus-Strong, tuned: the loop; tuning note by note; the all-pass; in and out of tune heard; more from one loop.
  9. Digital waveguides: two rails; equal to the finite-difference string; a clarinet; its threshold; a crescendo and the Tune heard; at work.
  10. Modal synthesis: modes; the stiff string as modes; the grid's dispersion; an ear question (modes or beads?); at work.
  11. Costs and controls: one second timed; what a player turns; which method for which job.
  12. Frontier: methods that learn; black, grey and white boxes; the research problem.
  13. Variation 52: the Tune on FM keys and bells, dissolved into grains and back. Outro: problems, payoffs.

Covers: frequency modulation and its sidebands; ratios and inharmonicity; operators and algorithms; granular synthesis from Gabor to Roads; spectral models; samplers; Karplus–Strong; digital waveguides (d'Alembert again); modal synthesis; what each method costs and controls. Built and computed: monochord/synth2.py: FM with lines matching Bessel's functions to 2.5 millionths; a DX-style operator engine with feedback (a sawtooth's harmonics within 3 dB); Gabor grains (length times width about 0.85) and a granular engine; partial tracking with inharmonicity (B = 3.8 × 10⁻⁴ on Part 7's piano) and residual splitting; Karplus–Strong tuned by an all-pass (33 cents to 0.6); a digital waveguide equal to the finite-difference string to 3 × 10⁻¹⁴; a waveguide clarinet with a threshold and odd harmonics; modal strings exact where the grid runs 16 cents flat by the 24th partial. Variation 52: the Tune on FM keys and bells, dissolved into grains and back (2,793 grains in ten seconds). Frontier: neural and differentiable physical models (open: how few parameters match an instrument's whole range?). Reading: Chowning (1973); Karplus & Strong (1983); Smith, Physical Audio Signal Processing; Roads, Microsound.

Build the film

python -m videos.music.music52.compute        # the part's numbers, into .cache/music52
python tools/build.py music52                  # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py music52 Hook   # one chapter, silent, with a contact sheet

Scenes: videos/music/music52. Setup: see the course page. Source of these notes: the README and the scenes' narration.

Build it
python -m videos.music.music52.compute                          # numbers and sounds (under a minute)
EXPLAINER_TTS=silent python tools/build.py music52 -q l --fps 15   # a silent-narration preview, with the sounds
python tools/qa_sound.py music52 --sync                         # the sound gates
python tools/dead_air.py renders/music52_480p.mp4 --sound music52  # no empty screen; no sound over a still one
python tools/lecture_length.py music52                          # 30 to 60 minutes, listening included
python tools/build.py music52                                   # 1080p30, narrated
python -m pytest -q tests/music                                 # Monochord against its references; this part's claims and clips
python -m videos.music.labs 52                                  # the lab (writes a figure and a short WAV)