-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparameter_setup.m
More file actions
29 lines (23 loc) · 1.08 KB
/
parameter_setup.m
File metadata and controls
29 lines (23 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function param = parameter_setup()
param = [];
param.Fs = 44100; %sampling frequency
param.num_levels = 10; %number of sensitivity levels
% Filterbank parameters:
param.f_low = 50; %lowest central frequency
param.f_high = 6500; %highest central frequency
param.n_channels = 200 ; %number of filter channels
param.cf = MakeErbCFs(param.f_low,param.f_high,param.n_channels);
% Please uncomment the following line and comment the previous one if you
% have different central frequencies than those calculated by the
% MakeErbCfs() function.
% param.cf = [120 400 880 1740 3250 6000]; %central frequencies
% The correction factor is used for adjusting the implementation of Michael
% Newton and this one. It is calculated as the average of the quotient
% between the maximum of this toolbox's IR (for each channel) and the maximum
% of M. Newton's toolbox's IR.
param.correction_factor = 1.334;
param.min_level = 0.0002;
param.min_level = param.min_level*param.correction_factor;
% added LSS May 10 2013
% multiplication factor between levels
param.mult_factor = sqrt(2) ;