13
0

prevent meter changes being dragged "through" a BBT marker

might want to do this for tempo drags too
This commit is contained in:
Paul Davis 2023-10-07 11:01:54 -06:00
parent ec34c2137d
commit 64458c2430

View File

@ -1990,6 +1990,11 @@ TempoMap::move_meter (MeterPoint const & mp, timepos_t const & when, bool earlie
prev_t = _tempos.begin(); prev_t = _tempos.begin();
} }
if (dynamic_cast<MusicTimePoint*> (&(*prev_t)) || dynamic_cast<MusicTimePoint*> (&(*prev_m))) {
/* game over ... cannot drag meter through a BBT Marker */
return false;
}
metric = TempoMetric (*prev_t, *prev_m); metric = TempoMetric (*prev_t, *prev_m);
beats = metric.quarters_at (bbt); beats = metric.quarters_at (bbt);