Skip to content

Timer:voice

since 26.1.0

Get / Set the voice used by the timer.

local voice = timer:voice([voice])

Parameters

Name Type Required Description
voice integer optional

Returns

voice (integer)

Examples

From the official Ethos documentation
timer = model.getTimer(0)
timer:voice(0)