diff src/CannamMidiFileLoader.cpp @ 5:195907bb8bb7

added purple where notes have been seen - lets you see what updates have been used. Also the chopping of midi files to the beginning was introduced recently, so when they load, you chop any white space at the beginning, then use first note to launch.
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Fri, 19 Aug 2011 16:38:30 +0100
parents 4a8e6a6cd224
children df9c838d0b8f
line wrap: on
line diff
--- a/src/CannamMidiFileLoader.cpp	Fri Aug 19 15:53:04 2011 +0100
+++ b/src/CannamMidiFileLoader.cpp	Fri Aug 19 16:38:30 2011 +0100
@@ -179,7 +179,9 @@
 						myMidiEvents.recordedEventTimes.push_back(myMidiEvents.getEventTimeMillis(t) - firstNoteTime);
 					//		printf("chopping beginning %f \n", myMidiEvents.getEventTimeMillis(t) - firstNoteTime);
 						}
-
+						
+						myMidiEvents.noteOnMatches.push_back(false);
+						
 						break;
 						
 					case MIDI_POLY_AFTERTOUCH: