comparison hackday/midiEventHolder.h @ 30:be2e779d76b5

internote calculation added but not running. Better way of waiting for first note to happen before starting.
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Wed, 07 Dec 2011 13:04:59 +0000
parents 69083ce48b83
children 9a70d9abdc8b
comparison
equal deleted inserted replaced
29:69083ce48b83 30:be2e779d76b5
81 void findLocalTempoPairs(); 81 void findLocalTempoPairs();
82 void findLocalTempoPairsWeightedForConfidence(); 82 void findLocalTempoPairsWeightedForConfidence();
83 void findOptimumTempoPairsToCurrentBestMatch(); 83 void findOptimumTempoPairsToCurrentBestMatch();
84 double getBestSpeedEstimate(const int& currentPlayedIndex, const int& equivalentRecordedIndex); 84 double getBestSpeedEstimate(const int& currentPlayedIndex, const int& equivalentRecordedIndex);
85 85
86
87 void calcuateNewInterNoteIntervals();
88
86 double likelihoodWidth; 89 double likelihoodWidth;
87 double likelihoodToNoiseRatio; 90 double likelihoodToNoiseRatio;
88 91
89 void printMatchMatrix(); 92 void printMatchMatrix();
90 void printRecordedEvents(); 93 void printRecordedEvents();
151 string tempoSpeedString; 154 string tempoSpeedString;
152 int minimumTimeIntervalForTempoUpdate; 155 int minimumTimeIntervalForTempoUpdate;
153 156
154 double ticksFactor; 157 double ticksFactor;
155 158
156 159 bool newOptimalMethod;
157 160 DoubleMatrix interNoteIntervals;
161 IntVector intervalsToCheck;
162 void checkForCorrectInterval(const double& playedTimeDifference, DoubleVector* v);
163 void drawInterNoteIntervals();
164 void printInterNoteIntervals();
165 int interNoteRange;
158 }; 166 };
159 #endif 167 #endif