Skip to content

Commit

Permalink
raptor_arp: Fix looper bug reported in the Ardour forum by Schmitty2005.
Browse files Browse the repository at this point in the history
  • Loading branch information
agraef committed Nov 20, 2023
1 parent 8de1dc1 commit 806e669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsp/raptor_arp.lua
Expand Up @@ -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
Expand Down

0 comments on commit 806e669

Please sign in to comment.