summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_clock.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-03-13 07:20:16 +1100
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:11 +1000
commitec791c8dd41c2f4876cf11047f53315d724ae538 (patch)
tree17c8ae6fd83082a13dd2f739613bc6f00a806d04 /gtk2_ardour/audio_clock.cc
parent3a2ff0a4a740421267254896ff25c17b5280b3cf (diff)
Tempo ramps - hook up tempo display, a new approach to audio-locked meters
- audio locked meters define an offset which is used for all public TempoMap methods while the internal map remains contiguous. Probably a few unexpected consequences here, but seems to work mostly.
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r--gtk2_ardour/audio_clock.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc
index a44c32a10a..4afe4a418d 100644
--- a/gtk2_ardour/audio_clock.cc
+++ b/gtk2_ardour/audio_clock.cc
@@ -1281,7 +1281,7 @@ AudioClock::set_bbt (framepos_t when, bool /*force*/)
TempoMetric m (_session->tempo_map().metric_at (pos));
- sprintf (buf, "%-5.1f", m.tempo().beats_per_minute());
+ sprintf (buf, "%-5.1f", _session->tempo_map().tempo_at (pos));
_left_layout->set_markup (string_compose ("<span size=\"%1\">" TXTSPAN "%3</span> <span foreground=\"green\">%2</span></span>",
INFO_FONT_SIZE, buf, _("Tempo")));