コード例 #1
0
 def test_determine_chords(self):
     b = Bar()
     b + ["C", "E", "G"]
     b + ["F", "A", "C"]
     self.assertEqual([[0.0, ["C major triad"]], [0.25, ["F major triad"]]],
                      b.determine_chords())
コード例 #2
0
 def test_determine_chords(self):
     b = Bar()
     b + ['C', 'E', 'G']
     b + ['F', 'A', 'C']
     self.assertEqual([[0.0, ['C major triad']], [0.25, ['F major triad']]],
                      b.determine_chords())