13
0

fix call to ::bbt_at() inside LV2 plugin

This commit is contained in:
Paul Davis 2021-03-23 23:56:47 -06:00
parent 092a454648
commit 552484978c

View File

@ -3118,7 +3118,7 @@ LV2Plugin::connect_and_run(BufferSet& bufs,
* so it needs to be realative to that.
*/
_current_bpm = metric.tempo().note_types_per_minute();
Temporal::BBT_Time bbt (metric.bbt_at (start));
Temporal::BBT_Time bbt (metric.bbt_at (start0));
double beatpos = (bbt.bars - 1) * metric.divisions_per_bar()
+ (bbt.beats - 1)
+ (bbt.ticks / Temporal::ticks_per_beat);