Max 4 Live .JS Task Object

Paul Quirie's icon

Hi,
I'm trying to use the task object with Javascript. One of the examples from the docs is below. I can call the ticker function but how do I call t ?
Cheers

function ticker(a, b, c) {
post("tick")
}

args = new Array(3)
args[0] = 1
args[1] = 2
args[2] = 3
t = new Task(ticker, this, args)

tyler mazaika's icon

See the "Task Methods" section of the documentation (scroll down).

t.schedule() or t.execute() or t.repeat() or t.cancel() depending on what you're trying to accomplish.