---
title: "Discussion on \"Building a metronome that doesn't drift with the Web Audio API\" | Hashnode"
description: "Discussion on \"Building a metronome that doesn't drift with the Web Audio API\". setInterval metronomes drift. How to schedule clicks on the Web Audio clock so a browser metronome stays on time, with code."
url: "https://hashnode.com/posts/building-a-metronome-that-doesn-t-drift-with-the-web-audio-api/6b0d671ea193a8474768970c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building a metronome that doesn't drift with the Web Audio API](https://musicbun.hashnode.dev/building-a-metronome-that-doesn-t-drift-with-the-web-audio-api?utm_source=hashnode&utm_medium=feed)

setInterval metronomes drift. How to schedule clicks on the Web Audio clock so a browser metronome stays on time, with code.

3d ago · 4 min read · musicbun.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-audio-api](https://hashnode.com/tag/web-audio-api)
-   [#music](https://hashnode.com/tag/music)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Jim Miller](https://hashnode.com/@jimmiller26)

@jimmiller26 · United States

  
[View profile](https://hashnode.com/@jimmiller26)

Building MusicBun: free browser music tools and an AI song maker

I build MusicBun (musicbun.com): free in-browser music tools like a BPM and key finder, a metronome and a guitar tuner, plus an AI song maker you talk to. I write about Web Audio and music DSP in plain JavaScript.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
