13
0

clean up some odd logic.

This commit is contained in:
nick_m 2016-12-12 01:57:41 +11:00
parent 782b28a1a8
commit 4d625d35b6

View File

@ -2511,17 +2511,18 @@ TempoMap::set_active_tempos (const Metrics& metrics, const framepos_t& frame)
if (t->initial()) {
t->set_active (true);
continue;
}
if (!t->initial() && t->active () && t->position_lock_style() == AudioTime && t->frame() < frame) {
} else if (t->position_lock_style() == AudioTime) {
if (t->active () && t->frame() < frame) {
t->set_active (false);
t->set_pulse (0.0);
} else if (!t->initial() && t->position_lock_style() == AudioTime && t->frame() > frame) {
} else if (t->frame() > frame) {
t->set_active (true);
} else if (!t->initial() && t->position_lock_style() == AudioTime && t->frame() == frame) {
} else if (t->frame() == frame) {
return false;
}
}
}
}
return true;
}