better logic for when beats finish during recording