diff options
author | nick_m <mainsbridge@gmail.com> | 2017-06-09 01:44:48 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2017-06-09 01:44:48 +1000 |
commit | cebefe69d9456ab57fc61128a7931baccef899bc (patch) | |
tree | 866e325ee7a0a7d8a1d89eb6aca5d547664a1366 /gtk2_ardour/editor_tempodisplay.cc | |
parent | 2b320d51dd080909a0e305116f1396dd1356200b (diff) |
Tempo lines display subdivisions correctly over a tempo change
TempoMap::get_grid() supplies a list of beat positions, leaving the lines
to work out any subdivision positions.
This is fine, unless a tempo section falls in between beats.
Use a BeatsFramesConverter along with a quarter note position
(in the BBTPointsList) to make this easier.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r-- | gtk2_ardour/editor_tempodisplay.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index e90c99baa6..b11bee44d3 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -394,7 +394,7 @@ Editor::draw_measures (std::vector<ARDOUR::TempoMap::BBTPoint>& grid) } if (tempo_lines == 0) { - tempo_lines = new TempoLines (time_line_group, ArdourCanvas::LineSet::Vertical); + tempo_lines = new TempoLines (time_line_group, ArdourCanvas::LineSet::Vertical, new BeatsFramesConverter (_session->tempo_map(), 0)); } const unsigned divisions = get_grid_beat_divisions(leftmost_frame); |