package = "digitalfilter" version = "1.3-0" source = { url = "http://www.pjb.com.au/comp/lua/digitalfilter-1.3.tar.gz", md5 = "1631f6b569b2a3f545243c0d076921a1" } description = { summary = "some Digital Filters - Butterworth, Chebyschev and Bessel.", detailed = [[ Version 1.0 IS ONLY A PLACEHOLDER, not yet ready for use ... local DF = require 'digitalfilter' ; local my_filter = DF.new_digitalfilter ({ --returns a closure ['type'] = 'butterworth', ['order'] = 3, ['shape'] = 'lowpass', ['freq'] = 1000, ['samplerate'] = 32000, }) 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 ]], homepage = "http://pjb.com.au/comp/lua/digitalfilter.html", license = "MIT" } dependencies = { "lua >= 5.1, < 5.4", } -- external_dependencies = { -- ALSA = { -- header = "alsa/asoundlib.h", -- library = "asound", -- } -- } build = { type = "builtin", modules = { ["digitalfilter"] = "digitalfilter.lua", -- ["C-readkey"] = { -- sources = { "C-readkey.c" }, -- incdirs = { "$(ALSA_INCDIR)" }, -- libdirs = { "$(ALSA_LIBDIR)" }, -- libraries = { "asound" }, -- } }, copy_directories = { } -- { "doc", "test" } }