From c8b918495696af99b64b9860169799131865de84 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 18 Dec 2019 19:50:32 -0700 Subject: fix thinko in MidiRegion::render() MidiSource::read() wants a length, not an end-sample. This should fix (at least) some cases where notes past the region end get included/played --- libs/ardour/midi_region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index 567a4b4c7c..41c3a868c3 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -542,7 +542,7 @@ MidiRegion::render (Evoral::EventSink& dst, dst, // destination buffer _position - _start, // start position of the source in session samples _start + internal_offset, // where to start reading in the source - _start + internal_offset + _length, + _length, // length to read 0, cursor, &tracker, -- cgit v1.2.3