-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Labels
Description
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}")