Paul Batchelorimporta901d566 years agoHistory
61 lines · 1.4 KB · Lua
RawDownload
sptbl["clamp"] = {     files = {        module = "clamp.c",        header = "clamp.h",        example = "ex_clamp.c",    },     func = {        create = "sp_clamp_create",        destroy = "sp_clamp_destroy",        init = "sp_clamp_init",        compute = "sp_clamp_compute",    },     params = {        optional = {            {                name = "min",                type = "SPFLOAT",                description = "Minimum value.",                default = 0            },            {                name = "max",                type = "SPFLOAT",                description ="Maximum value.",                default = 1            },        }    },     modtype = "module",     description = [[Performs a clamp operation on an input signal. This module performs what is known as a "clamp" operation, which sets thebounds of a signal in between a minimum and a maximum value. Anything exceedingthe bounds in either direction will be set to the closest valid value. Inother words: if x is less than minimum, set x to the minimum;if x is greater than the maximum, set x to be the maximum.]],     ninputs = 1,    noutputs = 1,     inputs = {        {            name = "input",            description = "Input audio signal."        },    },     outputs = {        {            name = "out",            description = "Output audio 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