THE AUDITORY MODELING TOOLBOX

Applies to version: 1.5.0

View the code

Go to function

LYON2011_CARSTEP - One sample-time update step for the filter part of the model

Usage:

[car_out, state] = lyon2011_carstep(x_in, CAR_coeffs, state);

Input parameters:

x_in The CF struct holds the filterbank design and state; if you want to break the input up into segments, you need to use the updated CF to keep the state between segments.
CAR_coeffs input_waves is a column vector if there's just one audio channel; more generally, it has a row per time sample, a column per audio channel. The input_waves are assumed to be sampled at the same rate as the CARFAC is designed for. A resampling may be needed before calling this.
state Plot automatic gain control figure. Default is 0.

Output parameters:

car_out The CF struct holds the filterbank design and state; if you want to break the input up into segments, you need to use the updated CF to keep the state between segments.
state decim_naps is like naps but time-decimated by the int CF.decimation.

Description:

LYON2011_CARSTEP updates the filter cascade state taking into account outer hair cell feedback. This file is part of an implementation of Lyon's cochlear model: "Cascade of Asymmetric Resonators with Fast-Acting Compression"

References:

R. F. Lyon. Cascades of two-pole–two-zero asymmetric resonators are good models of peripheral auditory function. J. Acoust. Soc. Am., 130(6), 2011. [ http ]