python-mingus
python-mingus copied to clipboard
How to recognise the chord from ints?
Hello!
My question is, What is the concise way to determine the chord from note indices?
Suppose I have Eb major triad:
chord = ["Eb", "G", "Bb"]
chords.determine(chord)
# returns
['Eb major triad']
However, when I don't have note names initially, I can't automatically determine this cord
chord = [
notes.int_to_note(3), # this is D#
notes.int_to_note(7), # this is G
notes.int_to_note(10) # and this is A#
]
chords.determine(chord)
# returns
[]
Sure, this problem is not well defined since a composer could mean [D#, G, A#], but this is a really rare case.
Thanks!