diff options
author | nick_m <mainsbridge@gmail.com> | 2016-05-29 06:58:24 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-05-29 06:58:24 +1000 |
commit | ecd93207ade0ad7677de77e38d6b2a3fa815289c (patch) | |
tree | 5bda88160cab5075f9f70594262dc38ebc97053d /libs/ardour/tempo.cc | |
parent | 5d6ad6800411433871512932c143b1d948e5b1cf (diff) |
Fix bbt dragging wrt audio-locked tempos.
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r-- | libs/ardour/tempo.cc | 4 |
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 */ |