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