From 8a5f370994a4931a3ba00f7a4539cc3b1720d6ed Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 17 Jul 2023 11:39:25 -0600 Subject: [PATCH] lv2: correctly compute tempo for tempo markers delivered as position events --- libs/ardour/lv2_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 32e98da36e..14ea2b8745 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -2928,7 +2928,7 @@ LV2Plugin::connect_and_run(BufferSet& bufs, assert (tempo_map_point != tempo_map_points.end()); const samplepos_t sample = tempo_map_point->sample (TEMPORAL_SAMPLE_RATE); const Temporal::BBT_Time bbt = tempo_map_point->bbt(); - double bpm = tempo_map_point->tempo().quarter_notes_per_minute (); + double bpm = (superclock_ticks_per_second() * 60) / tempo_map_point->superclocks_per_note_type_at_superclock (tempo_map_point->sclock()); write_position(&_impl->forge, _ev_buffers[port_index], *tempo_map_point, bbt, speed, Port::speed_ratio (),