From d5cfc898e4ca641f57d702c79f4afc5d352e48f4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 6 Nov 2019 09:07:12 -0700 Subject: [PATCH] resolved notes need to use cycle-relative time --- libs/ardour/disk_reader.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index 4bc931698b..0790b7279e 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -1126,9 +1126,10 @@ DiskReader::get_midi_playback (MidiBuffer& dst, samplepos_t start_sample, sample if (cnt) { - /* We re going to have to read across the loop end. Resolve any notes the extend across the loop end + /* We re going to have to read across the loop end. Resolve any notes the extend across the loop end. + * Time is relative to start_sample. */ - _tracker.resolve_notes (*target, loc->end() - 1); + _tracker.resolve_notes (*target, (loc->end() - 1) - start_sample); } } while (cnt);