realtime tempo detection