Include default-x and default-y for Rests

• Sep 25, 2014 - 13:00
Type
Functional
Frequency
Once
Severity
S5 - Suggestion
Status
PR created
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)


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 and display-octave. I'm not sure how that should interact with default-x and default-y.

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).