Working on re-sampling/tempo matching algorithm