[][src]Function aubio_sys::aubio_hztomel

pub unsafe extern "C" fn aubio_hztomel(freq: smpl_t) -> smpl_t

convert frequency (Hz) to mel

\param freq input frequency, in Hz

\return output mel

Converts a scalar from the frequency domain to the mel scale using Slaney Auditory Toolbox's implementation:

If \f$ f < 1000 \f$, \f$ m = 3 f / 200 \f$.

If \f$ f >= 1000 \f$, \f$ m = 1000 + 27 \frac{{ln}(f) - ln(1000))} {{ln}(6400) - ln(1000)} \f$

See also

aubio_meltohz(), aubio_hztomel_htk().