Paul Batcheloradded sp_phasor_reset0f9bc245 years agoHistory
72 lines · 1.5 KB · Lua
RawDownload
sptbl["phasor"] = {     files = {        module = "phasor.c",        header = "phasor.h",        example = "ex_phasor.c",    },     func = {        create = "sp_phasor_create",        destroy = "sp_phasor_destroy",        init = "sp_phasor_init",        compute = "sp_phasor_compute",        other = {            sp_phasor_reset = {                description = "resets the phase to a value.",                args = {                    {                        name = "value",                        type = "SPFLOAT",                        description = "value to reset to.",                        default = 0                    },                }            }        }    },     params = {        mandatory = {            {                name = "iphs",                type = "SPFLOAT",                description = "initial phase",                default = 0            },        },         optional = {            {                name = "freq",                type = "SPFLOAT",                description = "Frequency.",                default = 1.5            },        }    },     modtype = "module",     description = [[Normalized sawtooth wave from 0 to 1     Phasors are often used when building table-lookup oscillators.]],     ninputs = 0,    noutputs = 1,     inputs = {        {            name = "dummy",            description = "this doesn't do anything."        },    },     outputs = {        {            name = "out",            description = "Signal output."        },    } }

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