From 0927e39231a8a748a78f0f6499dd246942fed0e4 Mon Sep 17 00:00:00 2001 From: Alexander Morgan Date: Wed, 10 Jan 2024 20:34:51 +0100 Subject: [PATCH] Avoid calling hyphenToCamelCase twice per note (#1683) --- music21/musicxml/xmlToM21.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music21/musicxml/xmlToM21.py b/music21/musicxml/xmlToM21.py index 935806739..bc2d7098d 100644 --- a/music21/musicxml/xmlToM21.py +++ b/music21/musicxml/xmlToM21.py @@ -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):