13
0

Tempo ramps - fix thinko

This commit is contained in:
nick_m 2016-02-29 05:25:20 +11:00
parent b8b6d562a4
commit c4fe85dd7c

View File

@ -839,7 +839,7 @@ TempoMap::replace_c_func_from_tempo_and_beat (const double& bpm, const double& b
for (Metrics::iterator i = metrics.begin(); i != metrics.end(); ++i) { for (Metrics::iterator i = metrics.begin(); i != metrics.end(); ++i) {
if ((t = dynamic_cast<TempoSection*> (*i)) != 0) { if ((t = dynamic_cast<TempoSection*> (*i)) != 0) {
if (prev_ts && t->beat() > prev_ts->beat()) { if (prev_ts && beat < t->beat()) {
prev_ts->set_c_func_from_tempo_and_beat (bpm, beat, _frame_rate); prev_ts->set_c_func_from_tempo_and_beat (bpm, beat, _frame_rate);
break; break;
} }