The Auditory Modeling Toolbox

Applies to version: 0.10.0

View the code

Go to function

langendijk2002_spectralanalysis - FFT-based filter bank with constant relative bandwidth according

Usage

[cqmag] = langendijk2002_spectralanalysis( insig )
[cqmag,fc,cqmaghr,fvec] = langendijk2002_spectralanalysis( insig,fs,flow,fhigh,bw )

Input parameters

insig Impulse response or complex spectrum
fs Sampling rate, default is 48kHz.
flow Lowest frequency, minimum: 0.5kHz, default is 2kHz
fhigh Highest frequency, default is, default is 16kHz
bw bandwidth, possible values 3,6,9,12, default is 6.

Output parameters

cqmag mean magnitudes of CQ-bands in dB
fc center frequencies of bands (geo. mean of corners)
cqmaghr same as cqmag but for all freq. bins (high resolution)
fvec freq. vector according to FFT-resolution

langendijk2002_spectralanalysis(insig) approximates a constant-Q filter bank by averaging the magnitude bins of a DFT. langendijk2002_spectralanalysis results in 'bw' dB-magnitudes per octave.

References:

E. Langendijk and A. Bronkhorst. Contribution of spectral cues to human sound localization. J. Acoust. Soc. Am., 112:1583--1596, 2002.