Aligning the ends of hairpins to NoteColumn directions: 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 |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
The ends of hairpins may be aligned to the <code>LEFT</code>, <code>CENTER</code> or <code>RIGHT</code> of <code>NoteColumn</code> grobs by overriding the property <code>endpoint-alignments</code>, which is a pair of numbers representing the left and right ends of the hairpin. <code>endpoint-alignments</code> are expected to be directions (either -1, 0 | The ends of hairpins may be aligned to the <code>LEFT</code>, <code>CENTER</code>, or <code>RIGHT</code> of <code>NoteColumn</code> grobs by overriding the property <code>endpoint-alignments</code>, which is a pair of numbers representing the left and right ends of the hairpin. <code>endpoint-alignments</code> are expected to be directions (either -1, 0 or 1). Other values will be transformed with a warning. The right end of a hairpin terminating at a rest is not affected, always ending at the left edge of the rest. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
| Line 13: | Line 13: | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 13:24, 3 December 2025
The ends of hairpins may be aligned to the LEFT, CENTER, or RIGHT of NoteColumn grobs by overriding the property endpoint-alignments, which is a pair of numbers representing the left and right ends of the hairpin. endpoint-alignments are expected to be directions (either -1, 0 or 1). Other values will be transformed with a warning. The right end of a hairpin terminating at a rest is not affected, always ending at the left edge of the rest.
\version "2.24"
{
c'2\< <c' d'>\! |
\override Hairpin.endpoint-alignments = #'(1 . -1)
c'2\< <c' d'>\! |
\override Hairpin.endpoint-alignments = #`(,LEFT . ,CENTER)
c'2\< <c' d'>\! |
}