def test_one(self):
     pos = notes_to_positions(["C"], "C")
     self.assertEqual(pos, [0])
 def test_eleventh(self):
     pos = notes_to_positions(["G", "B", "D", "F", "A", "C"], "G")
     self.assertEqual(pos, [0, 4, 7, 10, 14, 17])
 def test_thirteenth(self):
     pos = notes_to_positions(["A", "C#", "E", "G", "B", "D", "F#"], "A")
     self.assertEqual(pos, [0, 4, 7, 10, 14, 17, 21])
 def test_add9(self):
     pos = notes_to_positions(["Ab", "C", "Eb", "Bb"], "Ab")
     self.assertEqual(pos, [0, 4, 7, 14])
 def test_ninth(self):
     pos = notes_to_positions(["F", "A", "C", "Eb", "G"], "F")
     self.assertEqual(pos, [0, 4, 7, 10, 14])
 def test_major(self):
     pos = notes_to_positions(["D", "F#", "A"], "D")
     self.assertEqual(pos, [0, 4, 7])
 def test_seventh(self):
     pos = notes_to_positions(["E", "G#", "B", "D"], "E")
     self.assertEqual(pos, [0, 4, 7, 10])
Exemple #8
0
 def test_one(self):
     pos = notes_to_positions(["C"], "C")
     self.assertEqual(pos, [0])
 def test_power(self):
     pos = notes_to_positions(["C", "G"], "C")
     self.assertEqual(pos, [0, 7])
Exemple #10
0
 def test_eleventh(self):
     pos = notes_to_positions(["G", "B", "D", "F", "A", "C"], "G")
     self.assertEqual(pos, [0, 4, 7, 10, 14, 17])
Exemple #11
0
 def test_thirteenth(self):
     pos = notes_to_positions(["A", "C#", "E", "G", "B", "D", "F#"], "A")
     self.assertEqual(pos, [0, 4, 7, 10, 14, 17, 21])
Exemple #12
0
 def test_ninth(self):
     pos = notes_to_positions(["F", "A", "C", "Eb", "G"], "F")
     self.assertEqual(pos, [0, 4, 7, 10, 14])
Exemple #13
0
 def test_add9(self):
     pos = notes_to_positions(["Ab", "C", "Eb", "Bb"], "Ab")
     self.assertEqual(pos, [0, 4, 7, 14])
Exemple #14
0
 def test_seventh(self):
     pos = notes_to_positions(["E", "G#", "B", "D"], "E")
     self.assertEqual(pos, [0, 4, 7, 10])
Exemple #15
0
 def test_major(self):
     pos = notes_to_positions(["D", "F#", "A"], "D")
     self.assertEqual(pos, [0, 4, 7])
Exemple #16
0
 def test_power(self):
     pos = notes_to_positions(["C", "G"], "C")
     self.assertEqual(pos, [0, 7])