Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading MusicXML file produces error #1714

Open
j-w-moebius opened this issue May 29, 2024 · 0 comments
Open

Loading MusicXML file produces error #1714

j-w-moebius opened this issue May 29, 2024 · 0 comments

Comments

@j-w-moebius
Copy link

music21 version

9.1.0

Problem summary

Calling converter.parse on this MusicXML file raises an error.

Steps to reproduce

environment.set('autoDownload', 'allow')
c = converter.parse("https://www.shapenote.net/musicxml/24.mxl")

Expected vs. actual behavior

Raises the exception TypeError: unsupported operand type(s) for +=: 'NoneType' and 'int' at music21/musicxml/xmlToM21.py:5587.

More information

Suggested fix (solved the issue for this file):
Change line 5585 into
if mxOctaveChange is not None and diatonicStep is not None:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant