HTML Audio performance
- by user1888309
I'm working on HTML drum machine, and I`ve met some performance issues,
rhythm start to break if BPM is higher than 110 but I'm expecting to make it work on BPM over 180.
I guess that it can be related with format or codec of audio files, however it also maybe that my code is not very optimised (as I can see from JS CPU profiling it's not).
So I'm expecting you guys give me some code review or some hints on optimisation.
Although all similar projects I've found on internet didn't work good
and maybe it's just restrictions of Audio API.
By the way, it's very raw and sounds works only on Chrome under Mac OS, so any advise on audio encoding for web also would be great
Project on Github pages
Screenshot of Groove which breaks
UPDATE
Ok, I've found that I was encoding audio files incorrectly, after fixing that rhythm stopped breaking, and also it started working in Mozilla. But still there are issues on windows OS.