THE AUDITORY MODELING TOOLBOX

Applies to version: 1.6.0

View the code

Go to function

erbrate2f
ERB rate to frequency: Calculate the frequency associated with an ERB rate

Usage:

f = erbrate2f(erbrate);
f = erbrate2f(erbrate, model);

Input parameters:

erbrate ERB rate (in Cams) as the number of auditory filters, each with the bandwidth of 1 ERB. The ERB rate describes the number of ERBs below the frequency f.
model

String selecting the model for the frequency calculation. The following models can be used:

  • 'glasberg1990': Eq. 4 from Glasberg and Moore (1990) or Eq. 2 from Moore et al. (1997). Default.
  • 'moore1983': Inverse of the Eq. 5 of Moore and Glasberg (1983). This is an older model and it is provided for compatibility with older models only.

Output parameters:

f Center frequency of the auditory filter (in Hz).

Description:

erbrate2f(erbrate) calculates the center frequency (in Hz) of an auditory filter which can associated with the ERB rate of erbrate (in Cams). The ERB rate is also sometimes described as the ERB scale, ERB number, or E. The unit of erbrate is also known as Cams, see e.g., Moore et al. (2016).

erbrate2f(erbrate) or erbrate2f(erbrate,'glasberg1990') calculates the frequency according to the inverse of Eq. 4 from Glasberg and Moore (1990) or inverse of Eq. 2 from Moore et al. (1997). This is the same as the deprecated function erb2fc.

erbrate2f(erbrate,'moore1983') calculates the frequency according to the inverse of Eq. 5 of Moore and Glasberg (1983).

References:

B. C. J. Moore, B. R. Glasberg, A. Varathanathan, and J. Schlittenlacher. A loudness model for time-varying sounds incorporating binaural inhibition. Trends in Hearing, 20:2331216516682698, 2016. PMID: 28215113. [ DOI ]

B. C. J. Moore, B. R. Glasberg, and T. Baer. A Model for the Prediction of Thresholds, Loudness, and Partial Loudness. J. Audio Eng. Soc, 45(4):224--240, 1997. [ http ]

B. Moore and B. Glasberg. Suggested formulae for calculating auditory-filter bandwidths and excitation patterns. The Journal of the Acoustical Society of America, 74:750--753, 1983.