Mercurial > hg > midi-score-follower
diff src/midiEventHolder.h @ 1:1a32ce016bb9
Changed bestEstimate timing to work via time sent from Max not the elapsed time. This had caused some problems, but this version now working surprisingly well on MIDI files with variable timing.
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Thu, 18 Aug 2011 23:27:42 +0100 |
parents | b299a65a3ad0 |
children | 5581023e0de4 |
line wrap: on
line diff
--- a/src/midiEventHolder.h Tue Aug 16 11:29:59 2011 +0100 +++ b/src/midiEventHolder.h Thu Aug 18 23:27:42 2011 +0100 @@ -28,6 +28,7 @@ IntMatrix recordedNoteOnMatrix;//note, velocity, duration IntVector matchesFound; BoolVector noteOnMatches; + // int recordedNoteOnIndex; DoubleVector recordedEventTimes; @@ -35,7 +36,13 @@ DoubleVector playedEventTimes; int playedNoteIndex; IntMatrix matchMatrix; + DoubleMatrix matchConfidence; + double totalConfidence; + double mouseX; + + void clearAllEvents(); + bool drawTempoMode; double minimumMatchSpeed , maximumMatchSpeed;