From 8c38d8fbbc4520a12da3bf31b900d7e85edf0ce3 Mon Sep 17 00:00:00 2001 From: Albert Graef Date: Mon, 20 Nov 2023 14:03:56 +0100 Subject: [PATCH] raptor_arp: Fix looper bug reported in the Ardour forum by Schmitty2005. --- share/scripts/raptor_arp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/scripts/raptor_arp.lua b/share/scripts/raptor_arp.lua index f1225c5ab1..25a4957abb 100644 --- a/share/scripts/raptor_arp.lua +++ b/share/scripts/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