Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to recognise the chord from ints? #111

Open
AndreyPikunov opened this issue Dec 24, 2022 · 0 comments
Open

How to recognise the chord from ints? #111

AndreyPikunov opened this issue Dec 24, 2022 · 0 comments

Comments

@AndreyPikunov
Copy link

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 AndreyPikunov changed the title How to recognise the cord from ints? How to recognise the chord from ints? Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant