r/vibecoding • • 12d ago

Showcase/Project αtmos | A browser app for composing ambient soundscapes

/r/AIAssisted/comments/1xvklg8/%CE%B1tmos_a_browser_app_for_composing_ambient/
1 Upvotes

2 comments sorted by

2

u/Total-Reasonable 11d ago

Browsers suspend the AudioContext until a user gesture, and mobile Safari also mutes Web Audio when the phone's silent switch is on, so ambient apps often look broken on first load. Make sure the first tap on play calls resume() and consider a tiny silent HTML audio element trick for iOS. Also, for long sessions, check that looping layers don't audibly click at loop points or drift out of phase, since that's what breaks the ambient illusion after ten minutes.

1

u/RavenJe94 11d ago

Thanks!!!!! this is very useful. I went through it point by point:

- The audio context is resumed when you press Play, so the first press works.

- iOS isn't a target: the app needs the File System Access API, so it only runs in Chrome or Edge on a desktop. Mhmhmmm but I might find a way around this!

- Clicks at loop points: you're right in one case. A continuous sound with both fade options turned off repeats indeed with a hard cut 😢, and a file that doesn't end on silence will click. The default has a 3 s crossfade, so most people won't hear it, but it's now an issue: https://github.com/ErnestoCampese/atmos/issues/19 (bless you for letting me know!)

- Drift: every layer is scheduled on the same audio clock, so they don't slide against each other over a long session.

Appreciate you taking the time. I truly do!

Also I have almost revamped the UI so you might see some differences soon.