TempoMap legacy session loading fixes
Ensure we set the last tempo end note types per minute. Clarify that we only set the end ntpm if unset.
This commit is contained in:
@@ -4531,7 +4531,7 @@ TempoMap::fix_legacy_end_session ()
|
||||
}
|
||||
|
||||
if (prev_t) {
|
||||
if (prev_t->type() != TempoSection::Constant) {
|
||||
if (prev_t->end_note_types_per_minute() < 0.0) {
|
||||
prev_t->set_end_note_types_per_minute (t->note_types_per_minute());
|
||||
}
|
||||
}
|
||||
@@ -4539,6 +4539,10 @@ TempoMap::fix_legacy_end_session ()
|
||||
prev_t = t;
|
||||
}
|
||||
}
|
||||
|
||||
if (prev_t) {
|
||||
prev_t->set_end_note_types_per_minute (prev_t->note_types_per_minute());
|
||||
}
|
||||
}
|
||||
|
||||
XMLNode&
|
||||
|
||||
Reference in New Issue
Block a user