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,14 +2511,15 @@ 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) {
t->set_active (false);
t->set_pulse (0.0);
} else if (!t->initial() && t->position_lock_style() == AudioTime && t->frame() > frame) {
t->set_active (true);
} else if (!t->initial() && t->position_lock_style() == AudioTime && t->frame() == frame) {
return false;
} 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->frame() > frame) {
t->set_active (true);
} else if (t->frame() == frame) {
return false;
}
}
}
}