summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_rulers.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-03-10 09:09:30 -0600
committerBen Loftis <ben@harrisonconsoles.com>2017-03-10 09:09:30 -0600
commit55e6d3b40d63265d35f7e9be33d7b5b4975a6775 (patch)
treed1429385af117ef559c51982c17e24ce08de8231 /gtk2_ardour/editor_rulers.cc
parent830728aaeec62aa39eb5ee9607f20fddbe56ec40 (diff)
Fix likely thinko in bbt ruler.
This fixes a bug for me: Measure lines appear & disappear during playback, at certain zoom scales. I think this is because the unecessary offset was causing beat_density to vary unnecessarily while rolling.
Diffstat (limited to 'gtk2_ardour/editor_rulers.cc')
-rw-r--r--gtk2_ardour/editor_rulers.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_rulers.cc b/gtk2_ardour/editor_rulers.cc
index bdffd6fd39..a32353f9c4 100644
--- a/gtk2_ardour/editor_rulers.cc
+++ b/gtk2_ardour/editor_rulers.cc
@@ -1113,7 +1113,7 @@ Editor::compute_bbt_ruler_scale (framepos_t lower, framepos_t upper)
bbt_bars = _session->tempo_map().bbt_at_beat (ceil_upper_beat).bars - _session->tempo_map().bbt_at_beat (floor_lower_beat).bars;
- beats = (ceil_upper_beat - floor_lower_beat) - bbt_bars;
+ beats = (ceil_upper_beat - floor_lower_beat);// - bbt_bars; possible thinko; this fixes the problem (for me) where measure lines alternately appear&disappear while playing at certain zoom scales
double beat_density = ((beats + 1) * ((double) (upper - lower) / (double) (1 + beat_after_upper_pos - beat_before_lower_pos))) / 5.0;
/* Only show the bar helper if there aren't many bars on the screen */