diff util/SMALL_AMT_plot.m @ 8:33850553b702

(none)
author idamnjanovic
date Mon, 22 Mar 2010 10:56:54 +0000
parents
children fc395272d53e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/SMALL_AMT_plot.m	Mon Mar 22 10:56:54 2010 +0000
@@ -0,0 +1,21 @@
+function figAMT=SMALL_AMT_plot(SMALL, AMT_res)
+%   Ivan Damnjanovic 2010
+%   Function gets as input SMALL structure and plots  AMT
+  
+
+  figAMT=figure('Name','Automatic Music Transcription');
+  
+  m=size(AMT_res,2);
+ 
+for i =1:m
+  subplot(m,1, i);plot(AMT_res(i).tp_notes(:,2), AMT_res(i).tp_notes(:,1),'ko', ...
+      AMT_res(i).tp_notes(:,4), AMT_res(i).tp_notes(:,3),'gx', ...
+        AMT_res(i).oe_notes(:,2), AMT_res(i).oe_notes(:,1),'bo', ...
+            AMT_res(i).oe_notes(:,4), AMT_res(i).oe_notes(:,3),'bx', ...
+                AMT_res(i).fn_notes_wo_oe(:,2), AMT_res(i).fn_notes_wo_oe(:,1),'ro', ...
+                     AMT_res(i).fp_notes_wo_oe(:,2), AMT_res(i).fp_notes_wo_oe(:,1),'rx')
+        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));
+          xlabel('Time') 
+            ylabel('Note Number')
+
+end