shithub: soundpipe

ref: 6f50522ff66bbebd9d899f71b6da71288c0a8d0d
dir: /modules/data/phasor.lua/

View raw version
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",
    },

    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."
        },
    }

}