MuseScore4.2.1 musicXML Import ignores ('editorial') <accidental> attribute 'parentheses'
the here attached test file musicXML.Test3.ed.musicxml was created by manually editing (with Windows Wordpad) an uncompressed musicXML file previously exported from MuseScore4.
The original file was edited to modify <accidental>sharp</accidental> declarations thus:
<accidental editorial="yes" parentheses="no">sharp</accidental>
When MuseScore4 opens musicXML.Test3.ed.musicxml, it displays all sharps with parentheses, but I would expect the sharps to be displayed without parentheses (which is what I want).
Attachment | Size |
---|---|
musicXML.Test3_.ed_.musicxml | 10.25 KB |
musicXML.Test3_.Capture.JPG | 70.2 KB |
Comments
Confirmed. Please report on GitHub, https://github.com/musescore/MuseScore/issues/new/choose, it seems to be a regression vs. MuseScore 3.6.2
In reply to Confirmed. Please report on… by Jojo-Schmitz
Thank you. I have never used GitHub before. I have created a account and reported the Issue as best I could. I hope that is sufficient.
While I was typing on GitHub, a reference to an apparently similar problem popped up
https://github.com/musescore/MuseScore/pull/21835
I did not know how best to use the popup, so I just included the information in my report.
Incidentally, I could see a provision on the GitHub UI for including pasted info (eg a small graphic), but I could not see a function there for uploading data file(s).
In reply to Thank you. I have never used… by JoeWheee
That's not an issue, but a pull request, supposed to fix an issue.
Edit: Ah, I see, it is at https://github.com/musescore/MuseScore/issues/21847, thanks!
Seems currently by design though:
since https://github.com/musescore/MuseScore/pull/19132
In a test file of my own, I did this. Created a score with parentheses around an accidental. Saved as musicxml. Opened the xml in an editor and did not do the same modification you did. I only changed the "yes" to "no". Saved the new file. The parentheses where gone.
In reply to In a test file of my own, I… by bobjp
MuseScore's MusicXML export does not create these
editorial="yes"
andcautionary="yes"
properties, justbracket="yes"
andparentheses="yes"
, that's why your test doesn't show the issue. That'd need to get fix along with the OP's issueIn reply to MuseScore does not create… by Jojo-Schmitz
I know I'm out of my element, here. What was the point of adding the "editorial" lines? He made it sound like it was to either get rid of the parentheses, or to demonstrate that MU4 just ignored them. Yes, MU4 ignored them. But did it need them.
On the other hand, did you open the posted xml? There are no parentheses. Only brackets. When I open an unzipped version in notepad, brackets are mentioned. When I change the "yes" to "no", brackets go away.
Changing the above code to
should fix this
Your example would be more convincing with a key signature that really makes these accidentals optional (AKA cautionary/editorial)
In reply to Your example would be more… by Jojo-Schmitz
Yes, you are right, it would. However the score from my "real application" which I want Musescore to render correctly is not intended to be Common Western Music Notation. It will be an approximation to "Griffschrift" for interpretation by a musician playing a "diatonic Accordion". Musescore provides a convenient mechanism to get my (musicXML) score rendered and exported to PDF. I chose "editorial" rather than "cautionary" for the accidentals on the premise that a human editor can in principle write whatever they want on the score.
In reply to Yes, you are right, it would… by JoeWheee
What also threw me off in my developing and testing the fix was that you combined "editorial" and "parentheses", whild I thought it should be "bracket" there (and "parentheses" with "cautionary").
I believe my fix now covers that too ;-)
In reply to What also threw me off in my… by Jojo-Schmitz
Sorry I am a bit slow in responding to your emails and postings here.
I am really new to the topic of XML. I got the idea to combine 'parentheses' with 'editorial' from:
https://w3c.github.io/musicxml/musicxml-reference/elements/accidental/
I really appreciate your following up my problem so promptly!
In reply to Sorry I am a bit slow in… by JoeWheee
I need to close down now (it is nearly midnight here), so I'll catch up with this thread again tomorrow.
In reply to I need to close down now (it… by JoeWheee
Here too (Germany)
In reply to Sorry I am a bit slow in… by JoeWheee
It is certainly allowed, just didn't match my expectations
See https://github.com/musescore/MuseScore/pull/21835
In reply to See https://github.com… by Jojo-Schmitz
I see that you have already combined my issue with this one. Many thanks! :-)
In reply to I see that you have already… by JoeWheee
An issue would still be helpfull, I'd then refer to that in my PR
In reply to An issue would still be… by Jojo-Schmitz
Sorry, I don't quite understand. What do you need from me? or will the comment which I have just posted suffice?
In reply to Sorry, I don't quite… by JoeWheee
Ah, I see, it is at https://github.com/musescore/MuseScore/issues/21847, thanks!