def test_transpose_rest(self): b = Bar() b.place_notes("C-4", 4) b.place_rest(4) c = Bar() c.place_notes("E-4", 4) c.place_rest(4) b.transpose("3", True) self.assertEqual(b, c)
def test_transpose(self): b = Bar() c = Bar() b + ["C", "E", "G"] c + ["E", "G#", "B"] b + ["F", "A", "C"] c + ["A", "C#", "E"] b.transpose("3", True) self.assertEqual(b, c) b.transpose("3", False) b.transpose("3") self.assertEqual(b, c)
def test_transpose(self): b = Bar() c = Bar() b + ['C', 'E', 'G'] c + ['E', 'G#', 'B'] b + ['F', 'A', 'C'] c + ['A', 'C#', 'E'] b.transpose('3', True) self.assertEqual(b, c) b.transpose('3', False) b.transpose('3') self.assertEqual(b, c)