diff src/midiEventHolder.h @ 17:d75d16c57eac

Fixed the ordering of the note matrix when loaded so it has a double check feature that they are ordered min to max. Prevents draw problems down the line
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 15 Nov 2011 20:06:55 +0000
parents f0abb0e414ec
children 11e3119ce6b4
line wrap: on
line diff
--- a/src/midiEventHolder.h	Tue Nov 15 19:35:05 2011 +0000
+++ b/src/midiEventHolder.h	Tue Nov 15 20:06:55 2011 +0000
@@ -132,5 +132,7 @@
 	void reorderMatrixFromNoteTimes(IntMatrix& noteOnMatrix);
 	int getIndexOfMinimumAboveTime(const double& time, IntMatrix& noteOnMatrix);
 	void correctTiming(IntMatrix& noteOnMatrix);
+	void doublecheckOrder(IntMatrix& noteOnMatrix);
+	int getIndexOfMinimumAboveIndex(const int& index, IntMatrix& noteOnMatrix);
 };
 #endif
\ No newline at end of file