-
Notifications
You must be signed in to change notification settings - Fork 29
/
defaultparamsorg.m
67 lines (54 loc) · 2.24 KB
/
defaultparamsorg.m
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
function ok=defaultparams
% function to define default parameters.
% Please copy this file as defaultparams.m and edit
% necessary parameters.
% If defaultparams.m exists, definitions in defaultparams.m
% override original default parameters.
% 08/Dec./2002 by H.K.
global f0floor f0ceil fs framem shiftm f0shiftm ...
fftl eta pc framel fftl2 acth pwth pcnv fconv sconv delsp gdbw cornf fname delfracind ...
tpath paraminitialized mag delfrac hr upsampleon defaultch
f0floor=40; % Lower limit of F0 search range
f0ceil=800; % Upper limit of F0 search range
fs=22050; % sampling frequency (Hz)
framem=40; % default frame length limit for pitch extraction (ms)
shiftm=1; % default frame shift (ms) for spectrogram
f0shiftm=1; % default frame shift (ms) for F0 information
fftl=1024; % default FFT length
eta=1.4; % time window stretch factor
pc=0.6; % exponent for nonlinearity
mag=0.2; % This parameter should be revised.
framel=framem*fs/1000;
if fftl < framel
fftl=2^ceil(log(framel)/log(2));
end;
fftl2=fftl/2;
defaultch=1; % 17/Feb./2001
%-------------- Decision parameter for source information
acth=0.5; % Threshold for normalized correlation (dimension less)
pwth=32; % Threshold for instantaneous power below maximum (dB)
%-----------------------------------------------------
% Synthesis parameters
%-----------------------------------------------------
pcnv=1.0; % pitch stretch
fconv=1.0; % frequency stretch
sconv=1.0; % time stretch
% delsp=2; % standard deviation of random group delay in ms
delsp=0.5; % standard deviation of random group delay in ms 26/June/2002
gdbw=70; % smoothing window length of random group delay (in Hz)
% cornf=3000; % corner frequency for random phase (Hz)
cornf=4000; % corner frequency for random phase (Hz) 26/June 2002
delfrac=0.2; % This parameter should be revised.
delfracind=0;
%-----------------------------------------------------
% file parameters
%-----------------------------------------------------
fname='none'; % input data file name
hr='on';
tpath=pwd;
if strcmp(computer,'MAC2')==0
tpath=[tpath '/'];
end;
upsampleon=0;
ok=1;
return;