The plot of my own horn (i.e. I'm the lead developer of the library, so biased, of course), but with music21 ( http://web.mit.edu/music21/ ) you can do:
>>> from music21 import chord >>> chord.Chord(['C','E','G']).pitchedCommonName 'C-major triad' >>> chord.Chord(['C','E','G','B']).pitchedCommonName 'C-major seventh chord'
or more obscure things ...
>>> chord.Chord(['C','C#','D','E','F#']).pitchedCommonName 'D-tritone-expanding pentachord'
full documents for Chord ( http://web.mit.edu/music21/doc/moduleReference/moduleChord.html ) will help you figure out how to get the text in exactly the format you want.
source share