Add more comprehensive tempo recognition and beat tracking