13
0

when moving tempo markers, do nothing unless the marker is moved at least 1 beat

Since tempo markers are always on-beat, this enforces a minumum distance of 1 beat while remaining on-beat.
This commit is contained in:
Paul Davis 2022-10-25 10:59:22 -06:00
parent 6904a86576
commit 3efb488629

View File

@ -1400,6 +1400,12 @@ TempoMap::move_tempo (TempoPoint const & tp, timepos_t const & when, bool push)
beats = when.beats ();
const Beats delta ((beats - tp.beats()).abs());
if (delta < Beats (1,0)) {
return false;
}
/* Do not allow moving a tempo marker to the same position as
* an existing one.
*/