~/talk

Making Minimal Techno with WebAssembly And a C Compiler

Talkat JSHeroes 2024 · 2024-05-23..05-24· [webassembly, creative-coding]
slides:none on file

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

  1. 0:00Introduction
  2. 1:04Web Audio API and audio worklets
  3. 3:12C to WebAssembly for audio
  4. 6:04Sine waves in C
  5. 9:14Tracking beats and time
  6. 13:30Kick drums and bass design
  7. 17:00Rhythmic patterns and chords
  8. 19:10Sawtooth wave sound design
  9. 21:45Chord modulation over bars
  10. 23:09Echo delay effects
  11. 27:09Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.