python-mingus icon indicating copy to clipboard operation
python-mingus copied to clipboard

How to recognise the chord from ints?

Open AndreyPikunov opened this issue 3 years ago • 0 comments

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!

AndreyPikunov avatar Dec 24 '22 13:12 AndreyPikunov