Vertically aligning dynamics across multiple notes: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
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 <code>staff-padding</code> property of the <code>DynamicLineSpanner</code> object. | 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 <code>staff-padding</code> property of the <code>DynamicLineSpanner</code> object. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\relative c' { | \relative c' { | ||
\override DynamicLineSpanner.staff-padding = #4 | \override DynamicLineSpanner.staff-padding = #4 | ||
| Line 9: | Line 9: | ||
</lilypond> | </lilypond> | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 15:08, 3 December 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\!
}