-
Notifications
You must be signed in to change notification settings - Fork 3
/
mirexace.m
27 lines (17 loc) · 809 Bytes
/
mirexace.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
% Automatic Chord Estimation - to be called by shell process
% this function process one file at a time
function mirexace(inFile, outFile, paramN)
acepath;
if ischar(paramN)
[feparam, beparam, dbnparam, dbn2param, chordmode] = feval(strcat('paramInit',paramN));
else
[feparam, beparam, dbnparam, dbn2param, chordmode] = feval(strcat('paramInit',num2str(paramN)));
end
display(strcat('start analyzing...', inFile));
[bdrys, basegram, uppergram, endtime] = frontEndDecode(inFile, feparam, 0, 0);
[rootgram, bassgram, treblegram, bdrys] = backEndDecode(chordmode, beparam, dbnparam, dbn2param,...
basegram, uppergram, bdrys, 0, 0);
writeOut(outFile, feparam.hopsize, feparam.fs,...
rootgram, treblegram, bdrys, endtime, chordmode);
display(strcat('finish analyzing...', inFile));
exit;