Version 4.3.0

This commit is contained in:
Gary Scavone
2009-03-24 23:02:15 -04:00
committed by Stephen Sinclair
parent 2cbce2d8bd
commit 27d9b79dc7
271 changed files with 22219 additions and 8834 deletions

View File

@@ -298,7 +298,7 @@ unsigned long MidiFileIn :: getNextEvent( std::vector<unsigned char> *event, uns
// Update track counter and check the tempo map.
trackCounters_[track] += ticks;
TempoChange tempoEvent = tempoEvents_[ trackTempoIndex_[track] ];
if ( trackCounters_[track] >= tempoEvent.count ) {
if ( trackCounters_[track] >= tempoEvent.count && trackTempoIndex_[track] < tempoEvents_.size() - 1 ) {
trackTempoIndex_[track]++;
tickSeconds_[track] = tempoEvent.tickSeconds;
}