The five main fields are
model.outmid | Outer and middle ear model, e.g., a fixed filter |
model.cochlea | Cochlear filtering, e.g., a gammatone filterbank |
model.haircell | mechanical-to-neural transduction, e.g., an inner hair cell model |
model.neural | Neural processing, e.g., model for neural adaptation |
model.pp | Post-processing, e.g., scaling or mapping to a decibel scale |
All main fields have several sub-fields.
model.outmid.file='filename';it is assumed that this stage is modeled using a fixed linear filter. AudMod loads in the file named filename.mat and uses the obtained filter coefficients to filter the signal using the following Matlab command signal=filter(a,b,signal);. It is important that the names of the forward and backward filter coefficients are a and b. Typically, the filter coefficients can be designed using Make_OEM function which is introduced later in this document.
Using Make_OEM it is also possible to design frequency-warped outer and middle ear filters. To utilize this feature, one have to download WarpTB package which is a set of routines for frequency-warped signal processing.
model.outmid.function='filename';means that outer and middle ear filtering is replaced by another Matlab function (filename.m) which has the following form:
signal=MyFunction(signal);
model.cochlea.gtAudMod uses Gammatone function which contains the design and implementation of a gammatone filterbank. The parameters of this filterbank are transmitted in the sub-fields of model.cochlea.gt. This is used in all ready-made profiles. However, it may be computationally inefficient because it also contains the design of the filterbank. The design parameters for Gammatone function are introduced later in this document.
model.cochlea.fb='filename'where filename is a .mat file containing the coefficients of the filters as row vectors in matrices f and b.
model.cochlea.function='filename';means that the cochlear processing is replaced by another Matlab function (filename.m) which has the following form:
signal=MyFunction(signal);This might implement, e.g., a transmission line model of the cochlea.
model.cochlea.asymmcompexists.
model.haircell.rcfThere are three sub-fields defined:
model.haircell.function='filename'to specify an alternative function which is used to model mechanical-to-neural transduction.
model.neural.function='filename'can be used to define a new model for this stage.