Paul Batchelorupdates to docs3cc24775 years agoHistory
80 lines · 2.1 KB · Lua
RawDownload
sptbl["fmpair"] = {     files = {        module = "fmpair.c",        header = "fmpair.h",        example = "ex_fmpair.c",    },     func = {        create = "sp_fmpair_create",        destroy = "sp_fmpair_destroy",        init = "sp_fmpair_init",        compute = "sp_fmpair_compute",    },     params = {        mandatory = {            {                name = "tbl",                type = "sp_ftbl *",                description = "Wavetable to read from. Note: the size of this table must be a power of 2.",                default = "N/A"            },        },        optional = {            {                name = "freq",                type = "SPFLOAT",                description = "Frequency (in Hz)",                default = 440            },            {                name = "amp",                type = "SPFLOAT",                description ="Amplitude (typically a value between 0 and 1).",                default = 0.4            },            {                name = "car",                type = "SPFLOAT",                description ="Carrier frequency, expressed as a ratio number in C:M ratio. Typically an integer.",                default = 1            },            {                name = "mod",                type = "SPFLOAT",                description ="Modulator frequency, expressed as a ratio number in C:M ratio. Typically an integer.",                default = 1            },            {                name = "indx",                type = "SPFLOAT",                description ="Modulation index. Most commercial synthesizers have a range from 0-8, but there's nothing stopping you from going beyond that.",                default = 8            },        }    },     modtype = "module",     description = [[FM oscilator pair with linear interpolation]],     ninputs = 0,    noutputs = 1,     inputs = {        {            name = "dummy",            description = "This does nothing."        },    },     outputs = {        {            name = "out",            description = "Signal out."        },    } }

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