From 24269acb97cf45f8c744c8a681594990e220b9b3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 29 Dec 2021 09:37:43 -0700 Subject: [PATCH] triggerbox: update relevant comment --- libs/ardour/triggerbox.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index b379db0c65..134ee5bed5 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1690,12 +1690,11 @@ MIDITrigger::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sam /* Now we have to convert to a position within the buffer we * are writing to. * - * There's a slight complication here, because both - * start_sample and dest_offset reflect an offset from the - * start of the buffer that our parent (TriggerBox) processor - * is handling in its own run() method. start_sample may have - * been adjusted to reflect a previous Trigger's processing - * during this run cycle, and so has dest_offset. + * start_sample has already been been adjusted to reflect a + * previous Trigger's processing during this run cycle, so we + * can ignore dest_offset (which is necessary for audio + * triggers where the data is a continuous data stream, but not + * required here). */ samplepos_t buffer_samples = timeline_samples - start_sample;