mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
triggerbox: fix incorrect behavior in MIDITrigger::run() caused by taking dest_offset into account twice
This commit is contained in:
parent
87974562d3
commit
645262c26a
1 changed files with 1 additions and 1 deletions
|
|
@ -1698,7 +1698,7 @@ MIDITrigger::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sam
|
|||
* during this run cycle, and so has dest_offset.
|
||||
*/
|
||||
|
||||
samplepos_t buffer_samples = timeline_samples - start_sample + dest_offset;
|
||||
samplepos_t buffer_samples = timeline_samples - start_sample;
|
||||
last_event_samples = timeline_samples;
|
||||
|
||||
const Evoral::Event<MidiBuffer::TimeType> ev (Evoral::MIDI_EVENT, buffer_samples, next_event.size(), const_cast<uint8_t*>(next_event.buffer()), false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue