def testRegression(self): audio = MonoLoader( filename=join(testdata.audio_dir, 'recorded', 'techno_loop.wav'))() rhythm = stdRhythmExtractor() bpm, _, _, _ = rhythm(audio) self.assertAlmostEqualFixedPrecision(bpm, 126, 0) # exact value= 125.726791382
def testRegression(self): audio = MonoLoader(filename=join(testdata.audio_dir, 'recorded', 'techno_loop.wav'))() rhythm = stdRhythmExtractor() bpm, _, _, _ = rhythm(audio) self.assertAlmostEqualFixedPrecision(bpm, 126, 0) # exact value= 125.726791382