Hz to midi conversion
hz_to_midi
[freq (number)]
Convert a frequency in hz to a midi note. Note that the result isn't an integer and there is a potential for some very minor rounding errors.
Introduced in v2.0.0
|
hz_to_midi(261.63) |
#=> 60.0003 |