18 return [](
LabelTrack& track,
const std::optional<double>& oldTempo,
20 if (!oldTempo.has_value())
22 const auto ratio = *oldTempo / newTempo;
24 for (
size_t ii = 0; ii < nn; ++ii)
27 label.selectedRegion.setTimes(
DEFINE_ATTACHED_VIRTUAL_OVERRIDE(OnLabelTrackProjectTempoChange)
A LabelTrack is a Track that holds labels (LabelStruct).
const LabelStruct * GetLabel(int index) const
void SetLabel(size_t iLabel, const LabelStruct &newLabel)
For defining overrides of the method.