mel: Convert Hz to the Mel scale (A copy of the emuR function)

melR Documentation

Convert Hz to the Mel scale (A copy of the emuR function)

Description

The calculation is done using the formulae mel = 1/log(2) * (log(1 + (Hz/1000))) * 1000 where Hz is the frequency in Hz.

Usage

mel(a)

Arguments

a

A vector or matrix of data or a spectral object.

Details

If 'data' is a spectral object, then the frequencies are changed so that they are proportional to the mel scale and such that the mel intervals between frequencies are constant between the lowest and highest frequencies. More specifically, suppose that a spectral object has frequencies at 0, 1000, 2000, 3000, 4000 Hz. Then the corresponding frequencies extend in mel between 0 and 2321.928 mel (=4000 Hz in mels) in four equal intervals, and linear interpolation is used with the 'approx' function to obtain the dB values at those frequencies.

Value

A vector or matrix or spectral object of the same length and dimensions as data.

References

Traunmueller, H. (1990) \"Analytical expressions for the tonotopic sensory scale\" J. Acoust. Soc. Am. 88: 97-100.

See Also

emuR::mel


humlab-speech/reindeer documentation built on May 21, 2023, 4:43 p.m.