diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 62035ddd3a..88616e013f 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1338,7 +1338,7 @@ MIDITrigger::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sam */ samplepos_t buffer_samples = timeline_samples - start_sample + dest_offset; - last_event_samples = buffer_samples; + last_event_samples = timeline_samples; const Evoral::Event ev (Evoral::MIDI_EVENT, buffer_samples, next_event.size(), const_cast(next_event.buffer()), false); DEBUG_TRACE (DEBUG::Triggers, string_compose ("inserting %1\n", ev));