From dda0c9b605e0d562e9b5757eed7ca5d440d1f5eb Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Sat, 23 Aug 2014 12:07:26 +0200 Subject: [PATCH] Fixed issue #5 --- sfxr.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sfxr.lua b/sfxr.lua index c655ac2..624e631 100644 --- a/sfxr.lua +++ b/sfxr.lua @@ -450,20 +450,13 @@ function sfxr.Sound:getEnvelopeLimit(freq) end end -function sfxr.Sound:getLimit(freq) - return self:getEnvelopeLimit(freq) -end - function sfxr.Sound:generateTable(freq, bits) local t = {} - t[self:getLimit(freq)] = 0 - local i = 1 for v in self:generate(freq, bits) do - t[i] = v or 0 + t[i] = v i = i + 1 end - return t end