Beat detection.