clean up some odd logic.
This commit is contained in:
parent
782b28a1a8
commit
4d625d35b6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user