summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-04-17 04:31:08 +1000
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:15 +1000
commitea91593968250c1f06a2ddf4dc1eae8f3501697c (patch)
tree0efa745e0c9875c0e0127ef0f555c43c7ee7d95f /libs
parent94e7e4e53b0678674ed7c9b2e899fda395a6e90d (diff)
Tempo ramps - more click fixing.
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/tempo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index 7aa86d38b0..8a481c9567 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -2641,7 +2641,7 @@ TempoMap::get_grid (vector<TempoMap::BBTPoint>& points,
framepos_t lower, framepos_t upper)
{
Glib::Threads::RWLock::ReaderLock lm (lock);
- const int32_t upper_beat = (int32_t) ceil (beat_at_frame_locked (_metrics, upper));
+ const int32_t upper_beat = (int32_t) floor (beat_at_frame_locked (_metrics, upper));
int32_t cnt = ceil (beat_at_frame_locked (_metrics, lower));
framecnt_t pos = 0;
/* although the map handles negative beats, bbt doesn't. */