Small changes for more accuracy in tempo detection