def test_species(self): c = 24 note_c = pitches.parse('C') species_c = 'C' octave_c = 'C2' correct = 'C' self.assertEqual(pitches.species(c), correct) self.assertEqual(pitches.species(note_c), correct) self.assertEqual(pitches.species(species_c), correct) self.assertEqual(pitches.species(octave_c), correct)
def string(self): return pitches.species(self._root) + 'dim'