def test_11(self): chord = np.array([tuple(['c', '6'])], dtype=self.dt)[0] self.assertEqual(find_chord_root(chord, 'pitch_spelling'), 'A-')
def test_7(self): chord = np.array([tuple(['C', '3/3'])], dtype=self.dt)[0] self.assertEqual(find_chord_root(chord, 'pitch_spelling'), 'G')
def test_4(self): chord = np.array([tuple(['B--', '7/5'])], dtype=self.dt)[0] self.assertEqual(find_chord_root(chord, 'pitch_spelling'), 'E-')
def test_6(self): chord = np.array([tuple(['g#', '-3/+4'])], dtype=self.dt)[0] self.assertEqual(find_chord_root(chord, 'pitch_spelling'), 'E')
def test_3(self): chord = np.array([tuple(['F-', '+1/+1'])], dtype=self.dt)[0] self.assertEqual(find_chord_root(chord, 'pitch_spelling'), 'F#')