Learn R Programming

hqmisc (version 0.2-1)

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.

See Also

f2st, st2f, f2bark, bark2f.

Examples

Run this code
# NOT RUN {
f2mel( seq( 250, 1000, by= 250) )
f2mel( seq(1000, 3000, by=1000) )
mel2f( seq( 500, 2500, by= 500) )
# }

Run the code above in your browser using DataLab