Hi!
I am doing some musical experiments and need to get some animations synchronised to a rhythm. Currently I am doing this (in “init”)
local pause = 0.2
local beat = 0.4
go.animate("ena#l", "color.w", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_INCIRC, 0.1, pause+(beat*1))
go.animate("text#l", "color.w", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_INCIRC, 0.1, pause+(beat*1), click)
go.animate("dva#l", "color.w", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_INCIRC, 0.1, pause+(beat*2))
go.animate("text1#l", "color.w", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_INCIRC, 0.1, pause+(beat*2), click)
go.animate("tri#l", "color.w", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_INCIRC, 0.1, pause+(beat*3))
go.animate("text2#l", "color.w", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_INCIRC, 0., pause+(beat*3), click)
go.animate("exc#l", "color.w", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_INCIRC, 0.1, pause+(beat*4))
go.animate("text3#l", "color.w", go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_INCIRC, 0.1, pause+(beat*4), click)
(the click function simply plays a sound)
But the clicks come in at the same (incorrect) times each time. It’s like the last click is slightly delayed.
Can anyone help? Should i expect perfect timing from go.animate?