Per the documentation, the constructor for objects is:
SV:create(type:string) → {object}
However, this is not enough for an Automation
object, as there are multiple types:
- “pitchDelta”
- “vibratoEnv”
- “loudness”
- “tension”
- “breathiness”
- “voicing”
- “gender”
The actual call for creating an Automation
needs to include the typeName
, as in:
SV:create(type:string, typeName:string) → {object}
For example, to create an Automation
object of type Loudness
, the call would be:
local loudnessAutomation = SV:create("Automation", "loudness")
The scripting documentation should be updated to reflect this.