diff options
-rw-r--r-- | applause.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 -- |