From b74fb262fa82902b44bb09bee2980decff1aee26 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 28 Apr 2022 14:33:22 -0600 Subject: [PATCH] use a very very slightly more convenient and possibly more correct method for LV2 bpm port --- libs/ardour/lv2_plugin.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 00df2283a3..dc489fbdc0 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -2649,8 +2649,7 @@ LV2Plugin::connect_and_run(BufferSet& bufs, if (_bpm_control_port) { - /* note that this is not necessarily quarter notes */ - const double bpm = tmap->tempo_at (timepos_t (start0)).note_types_per_minute(); + const double bpm = tmap->quarters_per_minute_at (timepos_t (start0)); if (*_bpm_control_port != bpm) { AutomationCtrlPtr c = get_automation_control (_bpm_control_port_index);