aubio_hztomel method

double aubio_hztomel(
  1. double freq
)

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().

Implementation

double aubio_hztomel(
  double freq,
) {
  return _aubio_hztomel(
    freq,
  );
}