view test_tempo_estimator.py @ 9:d43d1adecea6

Sketch implementation of tempo estimator
author Chris Cannam
date Mon, 08 Oct 2012 15:19:47 +0100
parents 99038dfea9e5
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