tempo calculation is buggy + fix
|Assignee:||Matthias Mauch||% Done:||
Because in main.cpp, lines 106-108 the bytes are read as int, the values can become negative and the subsequent tempo calculation goes wrong. When corrected by using unsigned chars as here:
unsigned char m0 = j->getMetaMessage(); unsigned char m1 = j->getMetaMessage(); unsigned char m2 = j->getMetaMessage();
the tempo calculation works fine.
Updated by Matthias Mauch over 1 year ago
- Assignee set to Matthias Mauch
- % Done changed from 0 to 100
fixed, as far as I can see... might need a quick review from Cannam, since I'm still a beginner.