Sync display of playhead and sending of midi events