diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-07-18 15:15:47 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-07-18 15:15:47 +0200 |
commit | 7e3608fe8b0a8e42fa303375cab0d60ede95c81e (patch) | |
tree | 7b1bddfbe0bf49946505553475a96485ccc543fb | |
parent | 7a9077315a799ca0d750c67685337964318ffd48 (diff) | |
download | applause2-7e3608fe8b0a8e42fa303375cab0d60ede95c81e.tar.gz |
fixed Stream:resample()
-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 -- |