[claude] Procedural Web Audio ambient soundtrack (#291) #303
Reference in New Issue
Block a user
Delete Branch "claude/issue-291"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #291
Research finding
Google MusicFX (
musicfx.sandbox.google.com) generates AI ambient music from text prompts but has no public API. The sovereign approach is to synthesise the soundtrack in-browser via the Web Audio API.What this adds
A 4-layer procedural ambient score in
app.js:All layers route through a synthetic convolver reverb and a dynamics limiter.
The existing
#audio-togglebutton (🔊/🔇) inindex.htmlnow works — clicking it starts or stops the soundtrack.AudioContextis created on first click to comply with browser autoplay policy.No external files or dependencies required.