Making Minimal Techno with WebAssembly And a C Compiler
summary
A complete minimal techno engine compiles C to WebAssembly with clang or mcrip, runs inside a Web Audio AudioWorklet, and successfully outputs sound at 48,000 samples per second in 128-sample blocks (≈350 calls/s). Implementation is ~100 lines of C, uses phasers, envelopes, side‑chain by inverted envelopes, additive saws up to six harmonics, a ring‑buffer delay at 0.375s dotted eighth with feedback 0.5, and a kick + bass pairing — all built in WASM and demonstrated working live.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:04Web Audio API and audio worklets
- 3:12C to WebAssembly for audio
- 6:04Sine waves in C
- 9:14Tracking beats and time
- 13:30Kick drums and bass design
- 17:00Rhythmic patterns and chords
- 19:10Sawtooth wave sound design
- 21:45Chord modulation over bars
- 23:09Echo delay effects
- 27:09Summary








