Latency issue – How to perfectly sync audio beeps (using Web Audio API) and visualization (using canvas + requestAnimationFrame)?
I use an audioContext = new AudioContext()
of the Web Audio API for scheduling beep sounds for every beat (relative to a user-defined bpm and time signature) – let’s call this stack of beeps “track”.