mirror of
https://github.com/thestk/stk
synced 2026-01-13 13:01:52 +00:00
Version 4.3.0
This commit is contained in:
committed by
Stephen Sinclair
parent
2cbce2d8bd
commit
27d9b79dc7
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user