Skip to content

Commit 3d76eac

Browse files
Fix for issue #1744 (mis-transpose up by an octave in certain MusicXML files).
1 parent f4ecd7e commit 3d76eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

music21/musicxml/xmlToM21.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5593,7 +5593,7 @@ def xmlTransposeToInterval(self, mxTranspose):
55935593
# TODO: musicxml 4: double, attr: above
55945594

55955595

5596-
if diatonicStep and chromaticStep:
5596+
if diatonicStep is not None and chromaticStep is not None:
55975597
# diatonic step can be used as a generic specifier here if
55985598
# shifted 1 away from zero
55995599
if diatonicStep < 0:

0 commit comments

Comments
 (0)