Mercurial > hg > midi-score-follower
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:b299a65a3ad0 | 1:1a32ce016bb9 |
---|---|
26 | 26 |
27 //the rehearsal version | 27 //the rehearsal version |
28 IntMatrix recordedNoteOnMatrix;//note, velocity, duration | 28 IntMatrix recordedNoteOnMatrix;//note, velocity, duration |
29 IntVector matchesFound; | 29 IntVector matchesFound; |
30 BoolVector noteOnMatches; | 30 BoolVector noteOnMatches; |
31 | |
31 // int recordedNoteOnIndex; | 32 // int recordedNoteOnIndex; |
32 DoubleVector recordedEventTimes; | 33 DoubleVector recordedEventTimes; |
33 | 34 |
34 IntMatrix playedNoteOnMatrix; | 35 IntMatrix playedNoteOnMatrix; |
35 DoubleVector playedEventTimes; | 36 DoubleVector playedEventTimes; |
36 int playedNoteIndex; | 37 int playedNoteIndex; |
37 IntMatrix matchMatrix; | 38 IntMatrix matchMatrix; |
39 DoubleMatrix matchConfidence; | |
40 double totalConfidence; | |
38 | 41 |
42 double mouseX; | |
43 | |
44 void clearAllEvents(); | |
45 bool drawTempoMode; | |
39 | 46 |
40 double minimumMatchSpeed , maximumMatchSpeed; | 47 double minimumMatchSpeed , maximumMatchSpeed; |
41 | 48 |
42 double period, pulsesPerQuarternote; | 49 double period, pulsesPerQuarternote; |
43 double getEventTimeMillis(double ticks); | 50 double getEventTimeMillis(double ticks); |