Automatic tempo detection of a music sample. Written in MATLAB.