示例#1
0
 def test_add9_chord(self):
     c = Chord("Eadd9")
     com = c.components_with_pitch(root_pitch=5)
     self.assertEqual(com, ["E5", "G#5", "B5", "F#6"])
示例#2
0
 def test_minor_chord(self):
     c = Chord("Am")
     com = c.components_with_pitch(root_pitch=2)
     self.assertEqual(com, ["A2", "C3", "E3"])
示例#3
0
 def test_slash_chord(self):
     c = Chord("Dm7/G")
     com = c.components_with_pitch(root_pitch=3)
     self.assertEqual(com, ["G3", "D4", "F4", "A4", "C5"])
示例#4
0
 def test_normal_chord(self):
     c = Chord("C")
     com = c.components_with_pitch(root_pitch=1)
     self.assertEqual(com, ["C1", "E1", "G1"])