next up previous
Next: Structure of the profile Up: HUTear Matlab Toolbox version Previous: Structure of the toolbox

Profile description examples

As mentioned above, the particular auditory model which is implemented using AudMod may be defined in a profile description file. A typical profile file is shown below:

% Profile_Plack98
%
% This profile corresponds to a revised temporal window model 
% presented in (Plack&Oxenham, 1998). 
% 
% This file is a part of HUTear- Matlab toolbox for auditory
% modeling. The toolbox is available at 
% http://www.acoustics.hut.fi/software/HUTear/

% Copyrights: Aki Härmä, Helsinki University of Technology, 
% Laboratory of Acoustics and Audio Signal Processing, 
% Espoo, Finland.
% Date: August 20 1999
% Email: Aki.Harma@hut.fi
clear model;

% General parameters
model.id = 'Temporal window model (Plack & Oxenham, 1998)';
model.fs = 44100; % Sampling frequency
model.ds = 1;     % Outputs downsampled to rate fs/ds

% Outer and middle ear filtering
model.outmid.id='Fixed filter'; 
model.outmid.file='MAF255';

% Model for inner ear 
model.cochlea.id='Gammatone filterbank';
model.cochlea.gt.design='gammatone'; 
model.cochlea.gt.nch=64;
model.cochlea.gt.frange=[200 22050];

% Mechanical to neural - haircell
model.haircell.id = 'Half-wave rectification, compression, and _filtering';
% Rectification
model.haircell.rcf.r='half';
% Compression
model.haircell.rcf.c='Plack98';
% Smoothing
model.haircell.rcf.f='no';
% Thresholding
model.haircell.rcf.thrhld='no';

% Neural adaptation
model.neural.id ='Sliding temporal window function';
model.neural.function ='Plack98';

% Post-processing
model.pp.id = 'Decibel scale';
model.pp.mapping='decibel';

It simply sets up a struct variable which control the the AudMod function. This profile description file defines a temporal window model introduced in [2]. The fields have been listed in 5.

One may use this with AudMod in the following two ways:

1.
Load model struct into Matlab's workspace and use it with AudMod:

>> Profile_Plack98;
>> A=AudMod(signal,model);

2.
Call AudMod so that the profile description file is used as an argument. In this case, AudMod loads the struct parameter and it is not visible in Matlab's workspace.

>> A=AudMod(signal,'Profile_Plack98');

There are four ready-made profile description files in the HUTear package. One may use them directly, or modify to produce a new model. The files are listed in Table 1 and they are placed in examples directory.

 
Table 1: Ready-made profile description files
Profile_file Modules Reference
Profile_Plack98.m Gammatone filterbank [2]
  Half-wave rectification  
  Nonlinear compression  
  Sliding temporal integrator  

Profile_Dau96.m

Gammatone filterbank [3]
  Half-wave rectification  
  Low-pass filtering  
  Püschel's adaptation network  

Profile_Karjalainen96.m

Gammatone filterbank [4]
  Half-wave rectification  
  Low-pass filtering  
  Karjalainen's adaptation network  
Profile_Meddis91.m Gammatone filterbank [5]
  Meddis's IHC model  
 


next up previous
Next: Structure of the profile Up: HUTear Matlab Toolbox version Previous: Structure of the toolbox
Aki Harma
2000-03-07