Function bliss_audio_aubio_rs::hz_to_mel[][src]

pub fn hz_to_mel(freq: Smpl) -> Smpl
Expand description

Convert frequency (Hz) to mel

  • freq Input 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().