Skip to content

Instantly share code, notes, and snippets.

@khoin
khoin / beat2.js
Created October 6, 2014 14:39 — forked from cheery/beat2.js
a moombah fork :)
var bpm = 124;
var tuning = 440;
var transpose = 12;
// constants
var tau = 2 * Math.PI;
// adjust tuning to bpm
tuning *= 120 / bpm;