Any reasonable sound can be written as a sum of sinusoids. The spectrum is the graph of how strongly each frequency is present; the Fourier transform moves between the two views. Pick a wave shape, add harmonics, and watch the time signal and its spectrum move together.
A faithful port of the Pink Trombone digital waveguide model: a glottal (LF) source drives a Kelly–Lochbaum acoustic waveguide with a nasal branch, turbulence, and release transients. Drag the tongue puck to shape vowels and formants ($F_1, F_2$), drag anywhere in the oral cavity for a constriction (fricatives/stops), and use the velum and pitch handles. Type in the live text reader to synthesize continuous speech with coarticulation and prosody! The default Speak voice is the tract model itself; the eSpeak option is an experimental comparison.
DSP ported from Pink Trombone by Neil Thapen (2017), MIT licensed.
Click or drag anywhere on the timeline to scrub through articulatory gestures. With Live read enabled, typing immediately speaks and morphs the vocal tract. Grab the tongue puck, constriction, velum, or pitch puck on the tract above at any time to explore bare-handed.
A faithful port of the Pink Trombone digital waveguide model: a glottal (LF) source drives a Kelly–Lochbaum acoustic waveguide with a nasal branch, turbulence, and release transients. Drag the tongue puck to shape vowels and formants ($F_1, F_2$), drag anywhere in the oral cavity for a constriction (fricatives/stops), and use the velum and pitch handles. Type in the live text reader to synthesize continuous speech with coarticulation and prosody! This clone is an independent workspace for model experiments; the original Vocal Tract tab is kept unchanged.
DSP ported from Pink Trombone by Neil Thapen (2017), MIT licensed.
Click or drag anywhere on the timeline to scrub through articulatory gestures. With Live read enabled, typing immediately speaks and morphs the vocal tract. Grab the tongue puck, constriction, velum, or pitch puck on the tract above at any time to explore bare-handed.
A pressure field rather than a single curve. Drag the source, listener or the wall; change the medium and the radiation pattern; then compare the flash with the delayed boom.
Hover to read pressure/delay; drag S, L, R or wall endpoints. Try Wall, Maze and Hole; Split L/R shows two listener positions. Starts paused — press Play or Pulse. The radial line on each puck is the computed oscillator phase.
Generate a wave in the time domain and see its spectrum — or draw the harmonic spectrum and hear the timbre it makes. The sound is the additive sum of the partials, so what you draw is what you hear.
A continuous tone sampled every $1/f_s$ seconds can only represent frequencies below $f_s/2$. Above it the samples describe a different, lower tone — the alias $|f - \mathrm{round}(f/f_s)\,f_s|$. The dots are the samples; the violet line is what the receiver reconstructs.
Samples are also rounded in amplitude to $2^{\text{bits}}$ levels. The rounding error is the quantisation noise; each extra bit buys ≈ 6 dB of signal-to-noise, $SNR \approx 6.02\,b + 1.76\ [dB]$.
The error is bounded by half a step, independent of the signal — so it sounds like uniform white noise. More bits = smaller step = quieter noise.
One voice with the building blocks of the 16-bit era: a PSG oscillator, an ADSR envelope, a subtractive filter and frequency modulation. Play the keys below.
PSG-style voices (two pulses, a triangle bass, a noise hit) arranged in a looping 16-step pattern — the tracker idea from the 8-bit era. Click cells to toggle steps.
Drag frequency along the cochlea and watch the travelling wave. Compare the physical dB SPL with the perceived loudness contour, then age the ear and hear the high end disappear.
The same four-bar loop, rearranged live. Change the game state or the tension slider; stems enter on the next bar when transitions are quantised, or immediately on a hard cut.
Rows are stems; columns are 16th notes. The playhead moves through the bar; the intensity meter drives which layers are audible.
Play the keyboard, drag an interval and hear just vs equal temperament, build a chord progression, and test your ear. The circle of fifths doubles as a root selector.
Strike the surface. The recipe is a noise transient, a set of material modes and a filtered tail; the variation slider changes every repetition so it never sounds like one sample on loop.
Click the canvas or press Space. The spectrum/particles show this hit; “6 variants” repeats it with fresh randomness.
One grain is an event; a texture is what happens when hundreds overlap. Raise the count and compare the resulting spectrum with a flat white-noise reference; the density readout shows how many grains per second are being layered, and the rainstick pattern shapes where they land.
Click the cloud to add one grain at that time/frequency. The gold line is the loop playhead.
Click steps to cycle density 0 → 25 → 50 → 75 → 100%. The count slider is the total number of grains; the pattern shapes where they land in the 2 s loop.
Our ears are most sensitive around 2–5 kHz and far less at the extremes. A loud masker raises the threshold of hearing around it, hiding a quieter probe — the basis of perceptual audio coding.
Drag the source. Distance sets the level (inverse-square), the angle sets the stereo pan, a moving source is Doppler-shifted, and a wall between source and listener occludes it.
The room is part of the instrument. Move the source and listener, open or close the door, swap the material, then clap and listen to the direct sound, early reflections and algorithmic reverb.
Drag S/L. Closed door → occluded path (dull + quieter); open door → direct path. Watch RT60 change with material and room.
Hallway
Every sound is a voice flowing through a small pipeline into the master bus. There is a hard polyphony limit; ask for more and the engine steals the oldest voice.
The graph a sound designer actually patches. Fire events, move the intensity/health RTPCs, morph snapshots, duck music under dialogue and watch the voice budget steal.
Click nodes to inspect; click events to fire them. Buses feed the master; ducking lowers music while dialogue is active.
Node inspector
A context-window MLP predicts the next eighth note from the previous eight. Change the seed and temperature, generate a new phrase, or edit cells directly on the piano roll.
Click a cell to add/remove a note. The model runs fully in JS on the CPU; weights are served from assets/models/ and cached.
A tiny spectral autoencoder compresses each magnitude frame to a latent vector. Reduce the latent dimensions or bit depth and hear the reconstruction degrade; the original phase is kept for resynthesis.
Original vs decoded magnitude. The latent is quantised to the selected bit depth and dimensionality.
Lecture 11 — Sound System: Formulations & Glossary
Reference guide matching the slides and lecture notes from IZHV — Sound System. Each equation is paired with a short dictionary defining the variable and its role in a game engine.
1. Wave Attributes
Sound Theory- $T$ (Period): time between repetitions (s).
- $f$ (Frequency): repetitions per second (Hz).
- $\lambda$ (Wavelength): spatial distance between peaks (m).
- $v$ (Speed): medium dependent, ~343 m/s in air.
2. Sampling & Quantization
Nyquist–Shannon- $f_s$ (Sampling rate): samples per second (CD = 44.1 kHz).
- Aliasing: folding of content above $f_s/2$ to the wrong frequency.
- $\Delta$ (Step size): $1/2^{\text{bits}}$; quantization noise floor.
3. Propagation & Falloff
Rendering the Audio- $r$ (Distance): source–listener separation (m).
- $I$ (Intensity): power per area; inverse-square law.
- $L_p$ (SPL): loudness in dB re $p_{ref}=20\,\mu Pa$.
4. Perceptual & Spatial
Psychoacoustics- Doppler $f'$: pitch shift for moving source/listener.
- Panning: distributing a mono voice across stereo channels.
- Masking: a louder sound hides a quieter nearby one in time/frequency.
5. Synthesis & the Voice Pipeline
Sound Design- ADSR: Attack, Decay, Sustain, Release envelope.
- Subtractive: oscillator through a filter.
- FM: carrier modulated by another oscillator.
- WaveTable / Granular: table playback, tiny grains (10–50 ms).
- Voices: polyphony limit; 2D (UI) vs 3D (spatial) voices.
- Master mixer: sums voices, converts depth/rate; EQ + compressor on the bus.
6. Credits & models
Colophon- Vocal Tract: Pink Trombone, Neil Thapen (2017), MIT; ported DSP.
- Neural Melody: 13.7k-param context MLP, synthetic training data.
- Neural Codec: 18.2k-param spectral autoencoder, synthetic training data.
- Weights: generated by scripts/train_models.py (CC0); CPU-only plain JS.
- Assets: served from dist/assets/models/, cached; inlined fallbacks for file://.
- UI: Web Audio, Tailwind CSS and KaTeX, all vendored offline.