Fix Legatize::operator() by not removing 1 tick

This commit is contained in:
Nil Geisweiller 2024-01-13 20:32:00 +02:00 committed by Robin Gareus
parent 92e359bf81
commit dfc1cd94df
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ Legatize::operator()(std::shared_ptr<ARDOUR::MidiModel> model,
break;
}
const Temporal::Beats new_end = (*next)->time() - Temporal::Beats::one_tick();
const Temporal::Beats new_end = (*next)->time();
if ((*i)->end_time() > new_end ||
(!_shrink_only && (*i)->end_time() < new_end)) {
const Temporal::Beats new_length(new_end - (*i)->time());