mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
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:
parent
e4e3c10a90
commit
886f4e6bc8
1 changed files with 5 additions and 1 deletions
|
|
@ -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&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue