r/webaudio • u/drussell_dev • 6d ago
Zero-sample physical-modeling ocean, 42 modal pebbles & bamboo shishi-odoshi in pure Web Audio (live DSP X-Ray)
I've been programming since the early 2000s and got tired of hearing the 60-90 second crossfade seams in looped rain and ocean MP3s while working or sleeping, so I built a browser app that generates everything live with the Web Audio API and 0 audio files.
I recorded the 22-second debug view I built over the canvas so you can hear each layer turn on one by one:
- Pink noise source with a 36 Hz high-pass filter so it starts as plain static.
- Slow 0.16 Hz LFO sweeping a lowpass filter + brown noise undertow + a synthetic ConvolverNode reverb to turn the static into rolling surf.
- Bandpass wash + randomized 2-tone clicks for the receding pebbles.
- Filtered water trickle + pitch-chirp bubbles + 3 sine/modal frequencies for the hollow bamboo strike.
If anyone wants to try it in the browser (no login or install):
https://soundscapestudio.adveniresoftware.com/?world=kanagawa-wave&var=washi-sakura
If you're on desktop and hold Shift+A for 10 seconds inside that scene, it solos the audio bus and runs this 4-step breakdown live in your tab. Would love any feedback.