summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-05-29 06:58:24 +1000
committernick_m <mainsbridge@gmail.com>2016-05-29 06:58:24 +1000
commitecd93207ade0ad7677de77e38d6b2a3fa815289c (patch)
tree5bda88160cab5075f9f70594262dc38ebc97053d /libs
parent5d6ad6800411433871512932c143b1d948e5b1cf (diff)
Fix bbt dragging wrt audio-locked tempos.
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/tempo.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index e01aa52a76..1f0d9395d5 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -2705,8 +2705,8 @@ TempoMap::gui_dilate_tempo (TempoSection* ts, const framepos_t& frame, const fra
} else {
/* AudioTime */
if (prev_to_prev_t && prev_to_prev_t->type() == TempoSection::Ramp) {
- new_bpm = prev_t->beats_per_minute() * ((frame - prev_t->frame())
- / (double) ((frame + prev_t_frame_contribution) - prev_t->frame()));
+ new_bpm = prev_t->beats_per_minute() * ((frame - prev_to_prev_t->frame())
+ / (double) ((end_frame) - prev_to_prev_t->frame()));
} else {
/* prev_to_prev_t is irrelevant */