From 806e669c195f02a31b3837399d1fecd73820354c Mon Sep 17 00:00:00 2001 From: Albert Graef Date: Mon, 20 Nov 2023 10:23:15 +0100 Subject: [PATCH] raptor_arp: Fix looper bug reported in the Ardour forum by Schmitty2005. --- dsp/raptor_arp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsp/raptor_arp.lua b/dsp/raptor_arp.lua index e1c132b..0007a7f 100644 --- a/dsp/raptor_arp.lua +++ b/dsp/raptor_arp.lua @@ -915,7 +915,7 @@ end function arpeggio:loop_get() local res = {{}, 0, 0} - local p, n = self.loopidx, math.max(1, math.min(#self.loop, self.loopsize)) + local p, n = self.loopidx, math.min(#self.loop, self.loopsize) if p < n then res = self.loop[p+1] -- we always *read* exactly n steps in a cyclic buffer