Mars Needs Guitars.... and the WebAudio API
summary
Live guitar input runs entirely through the WebAudio API: a media stream source -> waveShaper with Float32Array sized to context.sampleRate -> low‑pass tone mapped logarithmically -> gain -> destination. Uses an external USB box Roland Duo Capture (~$100 USB soundcard) for instrument I/O, adds compression, and implements bypass by disconnecting nodes. Distortion curve uses the common online algorithm with a tuned constant (18 instead of 20), it proves audible and usable though some noise/latency appears on modest hardware.
AI-written summary · about
chapters (6)
- 0:00WebAudio API intro
- 4:17Basic guitar pedal
- 9:35Distortion with waveshaping
- 13:09Tone control: low-pass
- 19:16Distortion curves for rock
- 25:19Demo and extra effects
related talks
25mJavaScript, JavaScript…. Rocks You!
29mJavaScript, JavaScript…. Rocks You!
33mCode, Play & Rock 'n' Roll: A WebAudio Experiment
30mThe Man who Sold the Amp: How to Process Music with JS
21mChanging live audio with the web-audio-api
29mCode, Play & Rock 'n' Roll: A WebAudio Experiment
28mChannel your inner rockstar with the web audio API
33mWe ❤ Music & the Web
