In the beginning of developing my web-based metronome app (, I quickly realized that typical approaches to playing audio with code would simply not work.

The use-case of a metronome may not sound that exciting, but it requires extreme accuracy and consistency, otherwise it is unusable.

Let’s take a look at what I tried, and what it takes to get low latency audio on the web.

The Naive Approach

Initially, using either setInterval or setTimeout seems like a reasonable idea to try. …

Anthony D'Andrea

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store