I'd love to read that too.
Be sure to post it back here when you publish and also link to it from your Github repo (in case it doesn't land on the front page of HN).
I've been playing around with simply building a metronome using nothing but native JS and it's a chore. I'll have to check out Tone.js.
Great work!