Lua Script to cue beat and tempo