Audio Toolkit - hz2erb


: erb = hz2erb (hz)

Convert hz to equivalent rectangular bandwidth (ERB)

Inputs

hz - input frequency in Hz.

Outputs

erb - Output frequency as a erb value

Examples

Convert 4000 Hz to erb

 erb = hz2erb(4000)
 

Convert a range of Hz to erb

 erb = hz2erb(4000:100:5000)
 

References

Glasberg and Moore. Derivation of Auditory Filter Shapes from Notched-Noise Data. Hearing Research. Vol. 47, 1990