Converter
Example
// copy utils functions to the window object
timbre.utils.exports("converter");
// A midi number to frequency
mtof(69); // timbre.utils.mtof(69) is 440(Hz)
// A tone name to a midi number
atom("A4") // timbre.utils.atom("A4") is #81
atom("G#3") === atom("G+3") === atom("A-3") === atom("Ab3");
// A tone name to a frequency
atof("C5") // timbre.utils.atom("A4") is 1046.50(Hz)
// Others
bpm2msec(134, 8); // timbre.utils.bpm2msec
bpm2hz(134, 8); // timbre.utils.bpm2hz
msec2bpm(320, 8); // timbre.utils.msec2bpm
msec2hz(250); // timbre.utils.msec2hz