erb: Convert Herz to Semitones Equivalent Rectangular Bandwidth...

View source: R/rendeeR_psychoacoustics.R

erbR Documentation

Convert Herz to Semitones Equivalent Rectangular Bandwidth (ERB)

Description

Convert physical frequencies (in Hz) to number of Equivalent rectangular bandwidth (ERB) below the frequency. The ERB is an approximation computed from the bandwidths of filters in human hearing, as modeled by rectangular band-pass filters.

Usage

erb(f)

Arguments

x

A vector of frequency values (in Hz)

Details

The formula for Number of ERBs given in \insertCiteMoore:1982hareindeer is used in the calculations.

Value

A vector of ERB values

References

\insertAllCited

Examples

f <- seq(1,10000,10)
plot(f,erb(f))
plot(erb(f),emuR::bark(f),lty=2,ylab="Zwicker et al. Bark scale")
abline(a = 0, b=1,col="blue")

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