mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue