Calculates tempos of drum loops put in a sampler