Include default-x and default-y for Rests
Type
Functional
Frequency
Once
Severity
S5 - Suggestion
Status
closed
Regression
No
Workaround
No
Project
Request to include both attributes musicxml format which are useful when the need to rendering precise positions accurately e.g. using Javascript.
Before:
< note >
< rest / >
< duration > 1 < / duration >
< voice > 1 < / voice >
< type > quarter < / type >
< / note >
to
< note default-x = " 70.00 " default-y = " 30.00 " >
< rest / >
< duration > 1 < / duration >
< voice > 1 < / voice >
< type > quarter < / type >
< / note >
Is the code related this function?
void ExportMusicXml::rest(Rest* rest, int staff)
Fix version
4.0.0
Comments
Yes it's the right function. As I said on the forum, note that the vertical position of rest is already given by
display-step
anddisplay-octave
. I'm not sure how that should interact withdefault-x
anddefault-y
.See also http://musescore.org/en/node/34381 and http://musescore.org/en/node/34346
See https://github.com/musescore/MuseScore/pull/9955
Or https://github.com/musescore/MuseScore/pull/10456
Relates to #270643: [EPIC] MusicXML import/export issues
FYI: checked the MusicXML documentation, but could not find anything explicit on a possible interaction between default-y and display-step. My guess is that adding default-y to a rest that already has a display-step will not hurt (providing the default- information is consistent with the display-step).
Fixed in branch master, commit 992953720f
Fix #34451: Add rest position in musicxml export
Together with https://github.com/musescore/MuseScore/pull/12122 (which fxes a screup of mine in https://github.com/musescore/MuseScore/pull/10456)
Automatically closed -- issue fixed for 2 weeks with no activity.