Vertically aligned dynamics and textscripts: Difference between revisions
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| Line 1: | Line 1: | ||
For all <code>DynamicLineSpanner</code> objects (i.e., hairpins and dynamic texts), the vertical minimum distance between their reference line and the staff is given by the value in the <code>staff-padding</code> property, unless other notation elements forces them to be farther away. Setting this property to a sufficiently large value aligns the dynamics. | |||
The same idea, together with <code>\textLengthOn</code>, is used to align | The same idea, together with <code>\textLengthOn</code>, is used to align text scripts along their baseline. | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
music = \relative c' { | music = \relative c' { | ||
a'2\p b\f | a'2\p b\f | ||
| Line 18: | Line 18: | ||
\music | \music | ||
} | } | ||
</lilypond> | </lilypond> | ||
[[Category:Spacing]] | [[Category:Spacing]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Workaround]] | |||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||