Controlling the vertical ordering of scripts: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series Tags: Mobile edit Mobile web edit |
No edit summary |
||
| Line 14: | Line 14: | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]][[Category:Snippet]] | ||
Revision as of 22:50, 21 November 2025
The vertical ordering of scripts is controlled with the 'script-priority property. The lower this number, the closer it will be put to the note. In this example, the TextScript (the sharp symbol) first has the lowest priority, so it is put lowest in the first example. In the second, the prall trill (the Script) has the lowest, so it is on the inside. When two objects have the same priority, the order in which they are entered determines which one comes first.
\version "2.24"
\relative c''' {
\once \override TextScript.script-priority = -100
a2^\prall^\markup { \sharp }
\once \override Script.script-priority = -100
a2^\prall^\markup { \sharp }
}