shithub: soundpipe

ref: 7de74a9d01cbb87b74def34099ce2f30a0fb6e6e
dir: /modules/data/delay.lua/

View raw version
sptbl["delay"] = {

    files = {
        module = "delay.c",
        header = "delay.h",
        example = "ex_delay.c",
    },

    func = {
        create = "sp_delay_create",
        destroy = "sp_delay_destroy",
        init = "sp_delay_init",
        compute = "sp_delay_compute",
    },

    params = {
        mandatory = {
            {
                name = "time",
                type = "SPFLOAT",
                description = "Delay time, in seconds.",
                default = 1.0
            }
        },

        optional = {
            {
                name = "feedback",
                type = "SPFLOAT",
                description = "Feedback amount. Should be a value between 0-1.",
                default = 0.0
            }
        }

    },

    modtype = "module",

    description = [[Adds a delay to an incoming signal with optional feedback.]],

    ninputs = 1,
    noutputs = 1,

    inputs = {
        {
            name = "input",
            description = "Signal input."
        },
    },

    outputs = {
        {
            name = "out",
            description = "Signal output."
        },
    }

}