예제 #1
0
    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)
예제 #2
0
파일: chords.py 프로젝트: aolsenjazz/cybach
 def string(self):
     return pitches.species(self._root) + 'dim'