Mercurial > hg > midi-score-follower
diff 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 |
line wrap: on
line diff
--- a/hackday/midiEventHolder.h Mon Dec 05 21:47:19 2011 +0000 +++ b/hackday/midiEventHolder.h Wed Dec 07 13:04:59 2011 +0000 @@ -83,6 +83,9 @@ void findOptimumTempoPairsToCurrentBestMatch(); double getBestSpeedEstimate(const int& currentPlayedIndex, const int& equivalentRecordedIndex); + + void calcuateNewInterNoteIntervals(); + double likelihoodWidth; double likelihoodToNoiseRatio; @@ -153,7 +156,12 @@ double ticksFactor; - - + bool newOptimalMethod; + DoubleMatrix interNoteIntervals; + IntVector intervalsToCheck; + void checkForCorrectInterval(const double& playedTimeDifference, DoubleVector* v); + void drawInterNoteIntervals(); + void printInterNoteIntervals(); + int interNoteRange; }; #endif \ No newline at end of file