예제 #1
0
 def test_one(self):
     pos = notes_to_positions(["C"], "C")
     self.assertEqual(pos, [0])
예제 #2
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])
예제 #3
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])
예제 #4
0
 def test_add9(self):
     pos = notes_to_positions(["Ab", "C", "Eb", "Bb"], "Ab")
     self.assertEqual(pos, [0, 4, 7, 14])
예제 #5
0
 def test_ninth(self):
     pos = notes_to_positions(["F", "A", "C", "Eb", "G"], "F")
     self.assertEqual(pos, [0, 4, 7, 10, 14])
예제 #6
0
 def test_major(self):
     pos = notes_to_positions(["D", "F#", "A"], "D")
     self.assertEqual(pos, [0, 4, 7])
예제 #7
0
 def test_seventh(self):
     pos = notes_to_positions(["E", "G#", "B", "D"], "E")
     self.assertEqual(pos, [0, 4, 7, 10])
예제 #8
0
 def test_one(self):
     pos = notes_to_positions(["C"], "C")
     self.assertEqual(pos, [0])
예제 #9
0
 def test_power(self):
     pos = notes_to_positions(["C", "G"], "C")
     self.assertEqual(pos, [0, 7])
예제 #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])
예제 #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])
예제 #12
0
 def test_ninth(self):
     pos = notes_to_positions(["F", "A", "C", "Eb", "G"], "F")
     self.assertEqual(pos, [0, 4, 7, 10, 14])
예제 #13
0
 def test_add9(self):
     pos = notes_to_positions(["Ab", "C", "Eb", "Bb"], "Ab")
     self.assertEqual(pos, [0, 4, 7, 14])
예제 #14
0
 def test_seventh(self):
     pos = notes_to_positions(["E", "G#", "B", "D"], "E")
     self.assertEqual(pos, [0, 4, 7, 10])
예제 #15
0
 def test_major(self):
     pos = notes_to_positions(["D", "F#", "A"], "D")
     self.assertEqual(pos, [0, 4, 7])
예제 #16
0
 def test_power(self):
     pos = notes_to_positions(["C", "G"], "C")
     self.assertEqual(pos, [0, 7])