Vertically aligning dynamics across multiple notes: 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 |
No edit summary |
||
| Line 11: | Line 11: | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]][[Category:Snippet]] | ||
Revision as of 23:02, 21 November 2025
Dynamics that occur at, begin on, or end on the same note will be vertically aligned. To ensure that dynamics are aligned when they do not occur on the same note, increase the staff-padding property of the DynamicLineSpanner object.
\version "2.24"
\relative c' {
\override DynamicLineSpanner.staff-padding = #4
c2\p f\mf
g2\< b4\> c\!
}