Skip to content

Errors when trying to identify a 11th or 13th chord #116

@wombatzus

Description

@wombatzus

Mingus version 0.6.1
To reproduce:

from mingus.containers.note_container import NoteContainer

chord9 = NoteContainer()
for note in ["C", "E", "G", "B", "D-5"]:
    chord9.add_note(note)
print(chord9.determine())        # Succeeds
chord11 = NoteContainer()

try:
    for note in ["C", "E", "G", "B", "D-5", "F-5"]:
        chord11.add_note(note)
    print(chord11.determine())        # Fails: KeyError: "M11"
except Exception as e:
    print(f"Exception: {type(e)}: {e}")

try:
    chord13 = NoteContainer()
    for note in ["C", "E", "G", "B", "D-5", "F-5", "A-5"]:
        chord13.add_note(note)
    print(chord13.determine())        # Fails: TypeError: can only concatenate str (not "NoneType") to str
except Exception as e:
    print(f"Exception: {type(e)}: {e}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions