Paul Batchelorimporta901d566 years agoHistory
55 lines · 1.2 KB · Lua
RawDownload
sptbl["thresh"] = {     files = {        module = "thresh.c",        header = "thresh.h",        example = "ex_thresh.c",    },     func = {        create = "sp_thresh_create",        destroy = "sp_thresh_destroy",        init = "sp_thresh_init",        compute = "sp_thresh_compute",    },     params = {        optional = {            {                name = "thresh",                type = "SPFLOAT",                description = "Threshold level",                default = 1.5            },            {                name = "mode",                type = "int",                description ="Sets when to detect theshold crossings. 0 = from below. 1 = from above. 2 = from above/below",                default = 0            },        }    },     modtype = "module",     description = [[Trigger generator for signals that cross a given threshold. ]],     ninputs = 1,    noutputs = 1,     inputs = {        {            name = "input",            description = "Input signal."        },    },     outputs = {        {            name = "trig",            description = "Produces a trigger when the input signal crosses the set threshold."        },    } }

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