mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix exact tempo pulse for snap to bars case.
This commit is contained in:
parent
24f64b3ea7
commit
bcf683df00
1 changed files with 4 additions and 1 deletions
|
|
@ -2558,7 +2558,10 @@ TempoMap::gui_move_tempo (TempoSection* ts, const framepos_t& frame, const int&
|
|||
|
||||
if (sub_num == -1) {
|
||||
/* snap to bar */
|
||||
pulse = floor (pulse + 0.5);
|
||||
BBT_Time bbt = bbt_at_beat_locked (future_map, beat);
|
||||
bbt.beats = 1;
|
||||
bbt.ticks = 0;
|
||||
pulse = pulse_at_bbt_locked (future_map, bbt);
|
||||
}
|
||||
|
||||
if (solve_map_pulse (future_map, tempo_copy, pulse)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue