forked from musescore/MuseScore
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-6: Add partial default-y support
Due to inconsistencies in the MusicXML spec and its implementation with regards to default-y and relative-y, precise implementation is not currently reasonable. Instead, this commit adds two essential functions which provide a sufficient amount of support for the vertical layout of direction elements: - In the case that the placement (above/below) isn't specified, this is inferred by the value of default-y + relative-y (here called totalY). - Rather than being added to their Segment upon read, direction elements with a default-y or relative-y specified are collected, sorted by totalY, then added to their Segment in ascending order. Autoplace places elements in the order they are added, so this allows at least the ordering of default-y and relative-y to be respected
- Loading branch information
1 parent
73807f9
commit 13e6c0f
Showing
7 changed files
with
1,227 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.