frequency in hz
midi note number
Convert a midi note number to fundamental frequency in hz. Equal temperment.
fundamental frequency in hz
Create an array of integers from start
(inclusive) to end
(exclusive). If
only a single argument is passed, create an array from 0
(inclusive) to
start
(exclusive).
Works with negative numbers, and counts backwards if needed.
Convert a string or number to a number of whole notes.
input value can be 'quarter' or '1/4' or 0.25
Convert a frequency to a midi note number, assuming 69=A5=440hz. The output is not rounded to an integer, so use Math.round on the output if you need an integer note number.