Stop recording after specified number of beats.