Sound from Scratch
Samples to oscillators, envelopes, synthesis, spectra, and notes, up to a working sequencer.
Digital Sound & Music
Before you start
Some lessons here build on lessons from other arcs: The DCT: Cosines Without Phase.
- 1
Sound as Numbers: Samplingin review
Sound · Signals · ~20 minWatch a tone become a list of numbers, find the limit half the sample rate sets, and hear a tone above it fold into a slower one.
- 2
Bit Depth: Quantization and Ditherin progress
Sound · Signals · ~20 minStore each sample in a handful of bits, watch the rounding error follow the tone, and hear dither turn distortion into hiss.
- 3
Oscillators: Sine, Square, Saw, Trianglein progress
Sound · Synthesis · ~25 minOne phase accumulator drives every classic waveshape; watch it advance and wrap sample by sample, then hear the four shapes at 220 Hz.
- 4
ADSR Envelopesin progress
Sound · Synthesis · ~25 minA five-state machine draws a note's loudness tick by tick: attack, decay, sustain, release. Watch it run, break it with a zero, and hear the shape on a tone.
- 5
Additive Synthesis: Building Timbre from Sinesin progress
Sound · Synthesis · ~25 minAdd sines at multiples of a fundamental one at a time and watch a square, saw, or triangle emerge, corners, Gibbs ripple, and all.
- 6
Subtractive Synthesis: The Low-Pass Filterin progress
Sound · Synthesis · ~30 minPush a saw through a resonant low-pass biquad sample by sample, read the five numbers that make a filter, and hear the cutoff and resonance every synth bass is built on.
- 7
FM Synthesisin progress
Sound · Synthesis · ~30 minLet one oscillator push another's phase around, predict the sidebands with Bessel functions, and hear the bells and electric pianos that filled the 1980s.
- 8
The DFT: Finding the Harmonicsin progress
Sound · Spectra · ~30 minCorrelate one frame of samples with a probe cosine and sine for every bin, watch the sums grow and cancel, and read a wave's recipe back off it.
- 9
Spectrograms: Sound over Timein progress
Sound · Spectra · ~25 minCut a signal into overlapping frames, window each one, transform it, and watch the columns stand up into a picture of frequency against time.
- 10
Transform Coding: Keep What the Ear Will Miss Leastin progress
Sound · Spectra · ~30 minCut a signal into frames, turn each frame into cosine coefficients, keep the largest few and round them, then transform back: the idea under MP3, AAC, and Opus, one frame at a time.
- 11
Pitch: Semitones, Octaves, and Equal Temperamentin progress
Sound · Music Theory · ~20 minWalk up the keyboard a semitone at a time, compute each frequency from A4 and a power of two, and see why equal steps come out equally spaced on a log axis.
- 12
Scales and Chords from Interval Patternsin progress
Sound · Music Theory · ~25 minBuild a scale from a root and a pattern of semitones, stack thirds on every degree, and read each chord's quality off the gaps between its tones.
- 13
The Step Sequencer: Scheduling Notes in Timein progress
Sound · Sequencing · ~30 minRun a sixteen-step pattern on two clocks: a jittery timer that looks ahead and a sample-accurate audio clock that plays, and watch a stall make a note late.
- 14
Your First Workstationin progress
Sound · Sequencing · ~35 minThree step patterns drive three synth voices through a mixer, one block at a time: every class from the earlier lessons running together as a tiny DAW.