You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check whether the duration code in ChordBase can be simplified:
super().__init__(**keywords)
# inherit Duration object from GeneralNote
# keep it here in case we have no notes
durationKeyword = None
if 'duration' in keywords:
durationKeyword = keywords['duration']
durationKeyword = self._add_core_or_init(notes, useDuration=durationKeyword)
if durationKeyword is not None:
self.duration = durationKeyword
elif 'type' in keywords or 'quarterLength' in keywords: # dots dont cut it
self.duration = Duration(**keywords)
it seems like all this information already is handled in Music21Object
The text was updated successfully, but these errors were encountered:
music21 version
8alpha
Problem summary
Check whether the duration code in ChordBase can be simplified:
it seems like all this information already is handled in Music21Object
The text was updated successfully, but these errors were encountered: