THE AUDITORY MODELING TOOLBOX

Applies to version: 1.6.0

View the code

Go to function

f2erbrate
Frequency to ERB rate: Calculate the ERB rate for a given frequency

Usage:

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

Input parameters:

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

String selecting the model for the ERB-rate 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': Eq. 5 of Moore and Glasberg (1983). This is an older model and it is provided for compatibility with older models only.

Output parameters:

erbrate ERB rate (in Cams) for the frequency f.

Description:

f2erbrate(f) calculates the ERB rate (in Cams) of an auditory filter with the center frequency f (in Hz). The ERB rate describes the number of auditory filters (each with the bandwidth of one ERB) below the frequency f. The ERB rate is also sometimes described as the ERB scale, ERB number, or E. The unit of erbrate is usually Cams, see e.g., Moore et al. (2016).

f2erbrate(f) or f2erbrate(f,'glasberg1990') calculates the ERB rate according to the Eq. 4 from Glasberg and Moore (1990) or Eq. 2 from Moore et al. (1997). This is the same as the deprecated function fc2erb.

f2erbrate(f,'moore1983') calculates the ERB rate according to the Eq. 5 of Moore and Glasberg (1983). This is an older model and it is provided for compatibility with older models only.

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.