if Region::tempo_map() finds no tempo info in the source, use the global map

This commit is contained in:
Paul Davis
2025-10-27 16:02:47 -06:00
parent ece2b125b1
commit e6b20df671

View File

@@ -2581,7 +2581,8 @@ Region::tempo_map () const
SegmentDescriptor sd;
if (!_sources.front()->get_segment_descriptor (r, sd)) {
return nullptr;
Temporal::TempoMap::SharedPtr tmap (Temporal::TempoMap::use());
return std::make_shared<Temporal::TempoMap> (tmap->tempo_at (position()), tmap->meter_at (position()));
}
return std::make_shared<Temporal::TempoMap> (sd.tempo(), sd.meter());