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:
parent
6904a86576
commit
3efb488629
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user