MusicXml export and small notes in Release Candidate
Really great to see the release candidate available.
However, when notes are specified as being small within a score, they are not correctly exported in MusicXml as small notes.
Here is a discussion I had with Michael Good on this subject : Smaller note size
This is an important feature for myself and should not be too difficult to implement as all the necessary information is available.
Here is an example of the existing output :
<note default-x="90.99" default-y="-35.00">
<pitch>
<step>F</step>
<octave>4</octave>
</pitch>
<duration>2</duration>
<voice>1</voice>
<type>quarter</type>
<stem>up</stem>
<staff>1</staff>
</note>
Here is what it should be :
<note default-x="90.99" default-y="-35.00">
<pitch>
<step>F</step>
<octave>4</octave>
</pitch>
<duration>2</duration>
<voice>1</voice>
<type size="cue">quarter</type>
<stem>up</stem>
<staff>1</staff>
</note>
Can this be included in the release ?
Comments
Here is the relevant line for notes
https://github.com/musescore/MuseScore/blob/fa0f99bd4d191009cb40b9990b8…
And for rests
https://github.com/musescore/MuseScore/blob/fa0f99bd4d191009cb40b9990b8…
Feel free to submit a pull request.
In reply to Here is the relevant line for by [DELETED] 5
I understand your position, but am unable to do this.
I am in full preparation for the first release of my own application, with its accompanying tools and web sites.
Can someone take this onboard ?
In reply to I understand your position, by Simon Giddings
Like this?
if (rest->small())
xml.tag("type size=\"cue\"", s);
else
xml.tag("type", s);
In reply to Like this? if by Jojo-Schmitz
Yes, that would be great !
For notes and rests, that is.
In reply to Yes, that would be great by Simon Giddings
of course both, that snippet was just to show the principle...
Will have a PR ready shortly. Check and subscribe to the issue mentioned below...
For notes it is a bit more involved:
if (note->small() || note->chord()->small())
xml.tag("type size=\"cue\"", s);
else
xml.tag("type", s);
In reply to of course both, that snippet by Jojo-Schmitz
Can you tell me if this will be included in the final release ?
In reply to Can you tell me if this will by Simon Giddings
Unlikely... check the status if the issue, #18620: [MusicXML] Small notes not exported and the comments to the PR on GitHub
See this: #18620: [MusicXML] Small notes not exported