Skip to content

Commit

Permalink
Avoid calling hyphenToCamelCase twice per note (#1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermorgan authored Jan 10, 2024
1 parent 3941a7f commit 0927e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music21/musicxml/xmlToM21.py
Original file line number Diff line number Diff line change
Expand Up @@ -3160,8 +3160,8 @@ def xmlToPitch(self, mxNote, inputM21=None):
if mxPitch is None: # whoops!!!!
return p

seta(p, mxPitch, 'step')
seta(p, mxPitch, 'octave', transform=int)
seta(p, mxPitch, 'step', 'step')
seta(p, mxPitch, 'octave', 'octave', transform=int)
mxAlter = mxPitch.find('alter')
accAlter = None
if alterText := strippedText(mxAlter):
Expand Down

0 comments on commit 0927e39

Please sign in to comment.