Input Table Syntax
Overview
{ "<name>", SOURCE }{ "<name>", VALUE, <min>, <max>, <default> }
Example using a SOURCE and a VALUE
local input =
{
{ "Strength", SOURCE}, -- user selects source (typically slider or knob)
{ "Interval", VALUE, 0, 100, 0 } -- interval value, default = 0.
}
local function run(strength, interval)
-- variable strength will contain the current slider value
-- variable interval is set by the user and constant through script lifetime
-- this script has no return value but may use playFile() to alert user
return
end
return {input=input, run=run}Last updated