Lua Script to Cue Beat and Tempo