13
0

triggerbox: fix incorrect behavior in MIDITrigger::run() caused by taking dest_offset into account twice

This commit is contained in:
Paul Davis 2021-12-29 08:58:55 -07:00
parent 87974562d3
commit 645262c26a

View File

@ -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. * 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; 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); const Evoral::Event<MidiBuffer::TimeType> ev (Evoral::MIDI_EVENT, buffer_samples, next_event.size(), const_cast<uint8_t*>(next_event.buffer()), false);