view test_tempo_estimator.py @ 8:99038dfea9e5

Write top-level tempo estimator test and estimator stub
author Chris Cannam
date Mon, 08 Oct 2012 15:12:37 +0100
parents
children cb43d088e369
line wrap: on
line source

import tempo_estimator as est

def test_tempo_120bpm():
    tempo = est.estimate_tempo_of_file('testfiles/120bpm.wav')
    assert abs(tempo - 120.0) < 0.5