Skip to content

Commit

Permalink
fix note addition of keywords (why it was missing)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Oct 7, 2022
1 parent 30b49cd commit 3e31cdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions music21/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ def __init__(self,
tempDuration = Duration(1.0)
else:
tempDuration = Duration(**keywords)
if 'quarterLength' in keywords:
del keywords['quarterLength']
if 'type' in keywords:
del keywords['type']
# only apply default if components are empty
# looking at currentComponents so as not to trigger
# _updateComponents
Expand Down

0 comments on commit 3e31cdc

Please sign in to comment.