_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.
*/
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);
}