From 7e3608fe8b0a8e42fa303375cab0d60ede95c81e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 18 Jul 2016 15:15:47 +0200 Subject: fixed Stream:resample() --- applause.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applause.lua b/applause.lua index f43c0d3..e257fb2 100644 --- a/applause.lua +++ b/applause.lua @@ -340,7 +340,7 @@ end -- This is a linear resampler thanks to the -- semantics of IndexStream function Stream:resample(factor) - return self[iota(math.floor(self:len() * factor)):div(factor)] + return self[line(1, math.floor(self:len() / factor), self:len())] end -- -- cgit v1.2.3