def test_include_percussion(self): clean_output() actual_melody, actual_stem = mix.mix_melody_stems( self.mtrack, OUTPUT_PATH, include_percussion=True) expected_melody = [2, 3] expected_stem = [2, 3] self.assertEqual(expected_melody, actual_melody) self.assertEqual(expected_stem, actual_stem) self.assertTrue(os.path.exists(OUTPUT_PATH)) clean_output()
def test_require_mono(self): clean_output() actual_melody, actual_stem = mix.mix_melody_stems(self.mtrack, OUTPUT_PATH, require_mono=True) expected_melody = [2, 3] expected_stem = [2, 3] self.assertEqual(expected_melody, actual_melody) self.assertEqual(expected_stem, actual_stem) self.assertTrue(os.path.exists(OUTPUT_PATH)) clean_output()
def test_max_melody_stems1(self): clean_output() actual_melody, actual_stem = mix.mix_melody_stems(self.mtrack, OUTPUT_PATH, max_melody_stems=1) expected_melody = [2] expected_stem = [2] self.assertEqual(expected_melody, actual_melody) self.assertEqual(expected_stem, actual_stem) self.assertTrue(os.path.exists(OUTPUT_PATH)) clean_output()