Play A (short) Sound Extremely Frequently?
I want to create a metronome using setInterval. I want to be able to reach high bpms like 300 bpm. Even if the file is short enough to be played as many times as it's needed, it wi
Solution 1:
Use Web Audio API for accurate timing, JavaScript's setTimeout can have up to a 10ms offset. There's a metronome demo using audioContext.currentTime
at it's core. See this article for details on audio scheduling. See this Plunker for Web Audio Metronome demo.
Post a Comment for "Play A (short) Sound Extremely Frequently?"