pub fn hz_to_mel(freq: Smpl) -> SmplExpand description
Convert frequency (Hz) to mel
freqInput frequency in Hz to convert
Converts a scalar from the frequency domain to the mel scale using Slaney Auditory Toolbox’s implementation:
If f < 1000, m = 3 f / 200. If f >= 1000, m = 1000 + 27 * (ln(f) - ln(1000)) / (ln(6400) - ln(1000))
See also mel_to_hz(), hz_to_mel_htk().