annotate util/SMALL_AMT_plot.m @ 24:fc395272d53e

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