Show HN: 8bars – Make Music in the Browser
8bars.app
8bars.app
EDIT: Done.
EDIT2: I've disabled autoplay anyway, because on some browsers it doesn't work properly.
I think you could easily prevent both by just having a button that takes up 1/4 the screen that says something like "Play Demo ". After that, you get your interaction event and people get their warning.
(That was meant to be a https://emojipedia.org/musical-note/ in the Play Demo button but apparently HN strips these. Which makes sense!)
If anyone else is planning on checking it out, make sure to set your speakers or headphones to the lowest volume possible first to avoid destroying your speakers and ears.
Edit fixed! Works on iPhone now!
And could you try checking the website without private browsing on? The website requires localStorage, and if that doesn't work, I guess the execution stops there, and it doesn't show anything. See: https://stackoverflow.com/questions/12630396/localstorage-no...
The error message → “ReferenceError: Can't find variable: AudioContext”
You can’t do this in some browsers → “c = new AudioContext” [1]
You need to wrap this API in a condition like so [2]