Remove 'synth' method and fix mapping string to note pitch

This commit is contained in:
Bartłomiej Pluta
2019-07-13 13:17:59 +02:00
parent 9ae9da089b
commit a07b226edb
2 changed files with 9 additions and 21 deletions

View File

@@ -44,7 +44,7 @@ class NotePitch(Enum):
if string.lower() in stringToPitch:
return stringToPitch[string.lower()]
if string.upper() in NotePitch:
if string.upper() in NotePitch.__members__:
return NotePitch[string.upper()]
raise NoteException(f"Note '{string}' does not exist")