previous next Up Title Contents

PreEmphasis_BandPass: Outer-/Middle-Ear Filtering


File name
MoPreEmphasis.[ch]


Description
This is the outer-/middle-ear filter model. It uses a first order band pass filter, capable of being applied order times, to model the effects of this section of the auditory periphery.


Example parameter file format
2	Filter order.
0.0	Pre-attenuation for filter (dB).
450.0	Lower, 3 dB down cut-off frequency (Hz).
8500.0	Upper, 3 dB down cut-off frequency (Hz).



Test program directory
Tests/SSPrograms

Generic Module Routines

This module has the standard Generic Module Routines (see Basic Module Routines used in Generic Programming, page 52).

The RunModel_PreEmphasis_BandPass(...) Process Routine

Syntax
BOOLN RunModel_PreEmphasis_BandPass(EarObjectPtr data);


Returns
TRUE if the process is successful, otherwise it returns FALSE.

The SetLowerCutOffFreq_PreEmphasis_BandPass(...) Routine

Syntax
BOOLN SetLowerCutOffFreq_PreEmphasis_BandPass(double theLowerCutOffFreq);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetOrder_PreEmphasis_BandPass(...) Routine

Syntax
BOOLN SetOrder_PreEmphasis_BandPass(int theOrder);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetPreAttenuation_PreEmphasis_BandPass(...) Routine

Syntax
BOOLN SetPreAttenuation_PreEmphasis_BandPass(double thePreAttenuation);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetPars_PreEmphasis_BandPass(...) Routine

Syntax
BOOLN SetPars_PreEmphasis_BandPass(int theOrder, double theLowerCutOffFreq, double theUpperCutOffFreq, double preAttenuation);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetUpperCutOffFreq_PreEmphasis_BandPass(...) Routine

Syntax
BOOLN SetUpperCutOffFreq_PreEmphasis_BandPass(double theUpperCutOffFreq);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

Example: Tests/SSPrograms/FilterShape.c

Parameter file:FilterShape.par:
#
# Main Parameter file
#

output.dat		Name of output file.

# Module specifications.

#Par. file				Name			Description
#---------				-----			-------------
ParFiles/St/PTone5.par		PureTone		Stimulus generation paradigm.
SimSpecs/PE/BPassInt.sim	Utility_SimulationSpec	Simulation
specification.

# Miscellaneous parameters

100.0		Lowest frequency for pure tone probe stimulus (Hz).
20000.0		Highest frequency for pure tone probe stimulus (Hz).
40			No. of frequencies within range (logarithmic).
2.5e-3		Ramp up rise time for signal (s).
Output

Figure [131] Filter shape for the outer-/middle-ear pre-emphasis band pass model.


previous next Up Title Contents