I'm trying to shorten a decrescendo hairpin so it stops before the breath mark, which is printed just before the barline. I attempted using the Lilypond override tweak: \once \override Hairpin.shorten-pair = #'(0 . 4)
I inserted the Lilypond directive just before the note that initiates the decrescendo hairpin. Most specifically, I placed the cursor on the barline before the first note the begins the decrescendo hairpin, followed by the insertion of the Lilypond directive referenced above. I also tried by inserting the directive on the note that initiates the decrescendo hairpin. Neither of the two attempts produced the desired outcome. I'm grateful for any suggestions. Thank you!
For your reference, I'm including the snippet from the Lilypond's manual below:
Moving the ends of hairpins
The ends of hairpins may be offset by setting the shorten-pair
property of the Hairpin
object. Positive values move endpoints to the right, negative to the left. Unlike the minimum-length
property, this property only affects the appearance of the hairpin; it does not adjust horizontal spacing (including the position of bounding dynamics). This method is thus suitable for fine-tuning a hairpin within its allotted space.
{
c'1~\<
c'2~ c'\!
\once \override Hairpin.shorten-pair = #'(2 . 2)
c'1~\<
c'2~ c'\!
\once \override Hairpin.shorten-pair = #'(-2 . -2)
c'1~\<
c'2~ c'\!
c'1~\p-\tweak shorten-pair #'(2 . 0)\<
c'2~ c'\ffff
}