Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderstel committed Oct 19, 2023
1 parent 57e0259 commit ddca79e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion music21/chord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4892,8 +4892,11 @@ def commonName(self) -> str:
>>> chord.Chord('C E G C-').commonName
'enharmonic equivalent to major seventh chord'
>>> chord.Chord('C4 E4 G4 B--4').commonName
>>> chord.Chord('C E G B--').commonName
'enharmonic equivalent to minor seventh chord'
>>> chord.Chord('C E G A').commonName
'minor seventh chord'
'''
if any(not p.isTwelveTone() for p in self.pitches):
return 'microtonal chord'
Expand Down

0 comments on commit ddca79e

Please sign in to comment.