shithub: soundpipe

ref: 25a9fcc24ad00c6a406042818b9e6f2e7bba0dd1
dir: /modules/data/randh.lua/

View raw version
sptbl["randh"] = {

    files = {
        module = "randh.c",
        header = "randh.h",
        example = "ex_randh.c",
    },

    func = {
        create = "sp_randh_create",
        destroy = "sp_randh_destroy",
        init = "sp_randh_init",
        compute = "sp_randh_compute",
    },

    params = {
        optional = {
            {
                name = "min",
                type = "SPFLOAT",
                description ="Minimum value to use.",
                default = 0
            },
            {
                name = "max",
                type = "SPFLOAT",
                description ="Maximum value to use.",
                default = 1
            },
            {
                name = "freq",
                type = "SPFLOAT",
                description = "Frequency of randomization (in Hz)",
                default = 10
            },
        }
    },

    modtype = "module",

    description = [[Random number generator with hold time.
]],

    ninputs = 0,
    noutputs = 1,

    inputs = {
    },

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

}