f2mel: Convert between frequency in Hz and in mel units
Description
Convert between frequency in Hz and in psychoacoustic mel units.
Usage
f2mel( hz )
mel2f( mel )
Arguments
hz
a frequency in Hertz (cycles per second).
mel
a frequency in mel units.
Value
Transformed value(s) in mel or hertz units.
Details
These functions convert between the linear Hertz and psychoacoustic Mel scales.
The functions use formulas provided by Rietveld & Van Heuven (2009).
A frequency of 1000 Hz equals 1000 mel.
For frequencies below 1000 Hz the mel scale is approximately linear;
for frequencies above 1000 Hz the mel scale is approximately logarithmic.
References
Rietveld, A. C. M., & Van Heuven, V. J. (2009).
Algemene Fonetiek (3rd ed.). Bussum: Coutinho.