comparison util/SMALL_AMT_plot.m @ 24:fc395272d53e

(none)
author idamnjanovic
date Tue, 27 Apr 2010 13:33:00 +0000
parents 33850553b702
children 8e660fd14774
comparison
equal deleted inserted replaced
23:636a2a3d7302 24:fc395272d53e
1 function figAMT=SMALL_AMT_plot(SMALL, AMT_res) 1 function figAMT=SMALL_AMT_plot(SMALL, AMT_res)
2 % Ivan Damnjanovic 2010 2 %
3 % Centre for Digital Music, Queen Mary, University of London.
4 % This file copyright 2009 Ivan Damnjanovic.
5 %
6 % This program is free software; you can redistribute it and/or
7 % modify it under the terms of the GNU General Public License as
8 % published by the Free Software Foundation; either version 2 of the
9 % License, or (at your option) any later version. See the file
10 % COPYING included with this distribution for more information.
11 %
3 % Function gets as input SMALL structure and plots AMT 12 % Function gets as input SMALL structure and plots AMT
4
5 13
6 figAMT=figure('Name','Automatic Music Transcription'); 14
7 15 figAMT=figure('Name','Automatic Music Transcription');
8 m=size(AMT_res,2); 16
9 17 m=size(AMT_res,2);
18
10 for i =1:m 19 for i =1:m
11 subplot(m,1, i);plot(AMT_res(i).tp_notes(:,2), AMT_res(i).tp_notes(:,1),'ko', ... 20 subplot(m,1, i);plot(AMT_res(i).tp_notes(:,2), AMT_res(i).tp_notes(:,1),'ko', ...
12 AMT_res(i).tp_notes(:,4), AMT_res(i).tp_notes(:,3),'gx', ... 21 AMT_res(i).tp_notes(:,4), AMT_res(i).tp_notes(:,3),'gx', ...
13 AMT_res(i).oe_notes(:,2), AMT_res(i).oe_notes(:,1),'bo', ... 22 AMT_res(i).oe_notes(:,2), AMT_res(i).oe_notes(:,1),'bo', ...
14 AMT_res(i).oe_notes(:,4), AMT_res(i).oe_notes(:,3),'bx', ... 23 AMT_res(i).oe_notes(:,4), AMT_res(i).oe_notes(:,3),'bx', ...
15 AMT_res(i).fn_notes_wo_oe(:,2), AMT_res(i).fn_notes_wo_oe(:,1),'ro', ... 24 AMT_res(i).fn_notes_wo_oe(:,2), AMT_res(i).fn_notes_wo_oe(:,1),'ro', ...
16 AMT_res(i).fp_notes_wo_oe(:,2), AMT_res(i).fp_notes_wo_oe(:,1),'rx') 25 AMT_res(i).fp_notes_wo_oe(:,2), AMT_res(i).fp_notes_wo_oe(:,1),'rx')
17 title(sprintf('%s dictionary in %.2f s - TP=%d FN=%d (Octave Errors = %d) FP=%d', SMALL.DL(i).name, SMALL.DL(i).time, AMT_res(i).TP, AMT_res(i).FN, size(AMT_res(i).oe_notes,1), AMT_res(i).FP)); 26 title(sprintf('%s dictionary in %.2f s - TP=%d FN=%d (Octave Errors = %d) FP=%d', SMALL.DL(i).name, SMALL.DL(i).time, AMT_res(i).TP, AMT_res(i).FN, size(AMT_res(i).oe_notes,1), AMT_res(i).FP));
18 xlabel('Time') 27 xlabel('Time')
19 ylabel('Note Number') 28 ylabel('Note Number')
20 29
21 end 30 end