digitalfilter

some Digital Filters - Butterworth, Chebyschev and Bessel.

$ luarocks install digitalfilter

This module provides some Digital Filters - Butterworth, Chebyschev and Bessel, in lowpass and highpass, also simplified bandpass and bandstop.

local DF = require 'digitalfilter' ;
local my_filter = DF.new_digitalfilter ({ --returns a closure
filtertype = 'butterworth',
order = 3,
shape = 'lowpass',
freq = 1000,
samplerate = 44100,
})
for i = 1,95 do
local u = (math.floor((i%16)/8 + 0.01)*2 - 1) -- square wave
local x = my_filter(u)
if i >= 80 then print('my_filter('..u..') \t=', x) end
end

Versions

2.2-02 years ago63 downloads
2.1-07 years ago1,620 downloads
2.0-07 years ago1,544 downloads
1.4-07 years ago1,549 downloads
1.3-07 years ago1,548 downloads
1.2-07 years ago1,543 downloads
1.1-07 years ago1,550 downloads
1.0-07 years ago1,546 downloads

Dependencies

lua >= 5.1, < 5.5

Labels

Manifests