Paul Batchelorimporta901d566 years agoHistory
82 lines · 2.2 KB · Lua
RawDownload
sptbl["lpc"] = {     files = {        module = "lpc.c",        header = "lpc.h",        example = "ex_lpc.c",    },     func = {        create = "sp_lpc_create",        destroy = "sp_lpc_destroy",        init = "sp_lpc_init",        compute = "sp_lpc_compute",        other = {            sp_lpc_synth = {                description = [[Toggle synth mode.                 Instead of reading an input, manipulate the parameters in                  a scaled ftable.]],                args = {                     {                        name = "ft",                        type = "sp_ftbl *",                        description = "ftable of size 7",                        default = "N/A"                    }                }            }        }    },     params = {        mandatory = {            {                name = "framesize",                type = "int",                description = "Sets the frame size for the encoder.",                default = 512            },        },         optional = {        }    },     modtype = "module",     description = [[A linear predictive coding filter.This module is a wrapper for the open source library openlpc, which implementsthe LPC10 audio codec optimized for speech signals. This module takes in aninput signal, downsamples it, and produces a decoded LPC10 audio signal, whichhas a similar sound to that of a speak and spell. In this context, the LPCsignal is meant to be more of a audio effect rather than a utility forcommunication.  Because the LPC10 encoderrelies on frames for encoding, the output signal has a few milliseconds ofdelay. The delay can be calculated in seconds as (framesize * 4) / samplerate. In addition to using the LPC as a decoder/encoder, this module can also be set to synth mode. Instead of reading from an input signal, the LPC caninstead read from parameters set directly in a scaled ftable.  ]],     ninputs = 1,    noutputs = 1,     inputs = {        {            name = "input",            description = "Input signal to be processed with LPC."        },    },     outputs = {        {            name = "output",            description = "LPC encoded signal."        },    } }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t