From 5d995264064485684f8cb3fe1a452debaecff0ef Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 27 Jan 2020 22:17:07 -0700 Subject: correct location of resolved note-offs after region is rendered --- libs/ardour/midi_region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index 0f9bb5c346..80da942589 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -555,7 +555,7 @@ MidiRegion::render (Evoral::EventSink& dst, * Note-Off's get inserted at the end of the region */ - tracker.resolve_notes (dst, _position - _start + _length); + tracker.resolve_notes (dst, (_position - _start) + (_start + internal_offset + _length)); return 0; } -- cgit v1.2.3