Skip to content

How to recognise the chord from ints? #111

@AndreyPikunov

Description

@AndreyPikunov

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions