comparison 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
comparison
equal deleted inserted replaced
16:f0abb0e414ec 17:d75d16c57eac
130 double minimumMatchError;//recent best error between observed note and aligned midi file 130 double minimumMatchError;//recent best error between observed note and aligned midi file
131 131
132 void reorderMatrixFromNoteTimes(IntMatrix& noteOnMatrix); 132 void reorderMatrixFromNoteTimes(IntMatrix& noteOnMatrix);
133 int getIndexOfMinimumAboveTime(const double& time, IntMatrix& noteOnMatrix); 133 int getIndexOfMinimumAboveTime(const double& time, IntMatrix& noteOnMatrix);
134 void correctTiming(IntMatrix& noteOnMatrix); 134 void correctTiming(IntMatrix& noteOnMatrix);
135 void doublecheckOrder(IntMatrix& noteOnMatrix);
136 int getIndexOfMinimumAboveIndex(const int& index, IntMatrix& noteOnMatrix);
135 }; 137 };
136 #endif 138 #endif