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
This commit is contained in:
parent
9bd8e67f39
commit
c8b9184956
@ -542,7 +542,7 @@ MidiRegion::render (Evoral::EventSink<samplepos_t>& 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,
|
||||
|
Loading…
Reference in New Issue
Block a user