summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-05-27 01:25:47 +1000
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:17 +1000
commit8f3bc6f8099d7fc3bcc7f0dc88434afa0084e35f (patch)
tree66422009b382faf1b5b6c49eda58ab4c64f35460 /gtk2_ardour/automation_controller.cc
parent250c88c038e8c7bf6449657463acc0403e01bcad (diff)
Tempo ramps - rename tempo_at() -> tempo_at_frame().. 3 decimals for the audioclock tempo display.
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc
index b598f44f94..66c051ee19 100644
--- a/gtk2_ardour/automation_controller.cc
+++ b/gtk2_ardour/automation_controller.cc
@@ -261,7 +261,7 @@ AutomationController::set_freq_beats(double beats)
const ARDOUR::ParameterDescriptor& desc = _controllable->desc();
const ARDOUR::Session& session = _controllable->session();
const framepos_t pos = session.transport_frame();
- const ARDOUR::Tempo& tempo = session.tempo_map().tempo_at(pos);
+ const ARDOUR::Tempo& tempo = session.tempo_map().tempo_at_frame (pos);
const double bpm = tempo.beats_per_minute();
const double bps = bpm / 60.0;
const double freq = bps / beats;