mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
Tempo ramps - fix more wtfery.
This commit is contained in:
parent
fec6695876
commit
ec29f5d64c
1 changed files with 12 additions and 12 deletions
|
|
@ -2908,6 +2908,18 @@ TempoMap::set_state (const XMLNode& node, int /*version*/)
|
|||
_metrics.sort (cmp);
|
||||
}
|
||||
|
||||
/* check for legacy sessions where bbt was the base musical unit for tempo */
|
||||
for (Metrics::const_iterator i = _metrics.begin(); i != _metrics.end(); ++i) {
|
||||
TempoSection* t;
|
||||
if ((t = dynamic_cast<TempoSection*> (*i)) != 0) {
|
||||
if (t->legacy_bbt().bars != 0) {
|
||||
fix_legacy_session();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* check for multiple tempo/meters at the same location, which
|
||||
ardour2 somehow allowed.
|
||||
*/
|
||||
|
|
@ -2936,18 +2948,6 @@ TempoMap::set_state (const XMLNode& node, int /*version*/)
|
|||
prev = i;
|
||||
}
|
||||
|
||||
/* check for legacy sessions where bbt was the base musical unit for tempo */
|
||||
for (Metrics::const_iterator i = _metrics.begin(); i != _metrics.end(); ++i) {
|
||||
TempoSection* t;
|
||||
if ((t = dynamic_cast<TempoSection*> (*i)) != 0) {
|
||||
if (t->legacy_bbt().bars != 0) {
|
||||
fix_legacy_session();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
recompute_map (_metrics);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue