-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Import of MusicXML files: Chord symbol didn't load correctly #16638
Comments
Isn't this a duplicate of #13214 ? |
Yes. I think it will be fixed soon, because the cause of the bug has been found. |
The cause is known; it's what I stated in that other issue. Not the red herring that was also posted in that other issue, although it certainly looked like a good guess. |
Yes. You're right. Although the logic of that code block is weird for me, but it doesn't cause the broken. Maybe other changing between 3.6 and 4.0 cause this problem, I'm now comparing the source code between 3.6 and 4.0 to find the culprit. |
Again, it's exactly as I stated multiple times already - the style initialization code no longer loads the chord description file, so it needs to be done separately. The only question is where that should be best done. I think it makes sense to do it somewhere fairly central so each importer doesn't need to do it manually. I just don't know where the right place would be. See in particular my comment where I point directly to the relevant code - #13214 (comment) |
I am running into the same issue in MuseScore 4.0. MusicXML is not rendering correctly when opened in all formats, Compressed (.mxl), Uncompressed (.musicxml & .xml). |
Indeed, the issue is not fixed, but the workarounds explained previously continue to work (change appearance to jazz & back, or save & reload). |
This issue is fixed by #17427 |
Should get resolved by #18737 as far as I can tell |
Issue type
Engraving bug
Bug description
When importing MusicXML files, MuseScore 4 removes the root name from the chord symbols.
You can test it yourself with test/harmony2.xml or other MusicXML files, and you will get similar results as the screenshot.
The problem probably comes from the following code block
https://github.com/musescore/MuseScore/blob/v4.0.1/src/importexport/musicxml/internal/musicxml/importmxmlpass2.cpp#L5215-L5239
MuseScore 4 has a logic error in handling of MusicXML's
root-step
tag.According MusicXML documentation on the
root-step
element, thetext
attribute inroot-step
element is not necessary, and iftext
attribute doesn't exist inroot-step
element it will use the element contents as the root name.Below is my suggested fix.
Replace line 5215 - line 5220 of importmxmlpass2.cpp with following the code:
I don't have a C++ development environment on my PC, please somebody help me to test the code and commit it to GitHub.
Steps to reproduce
Import any MusicXML file that contains annotations for chord symbols.
Screenshots/Screen recordings
MuseScore Version
4.0.1
Regression
Yes, this used to work in Musescore 3.x and now is broken
Operating system
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: