Jump to content

Moving the ends of hairpins: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
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
Line 1: Line 1:
The ends of hairpins may be offset by setting the <code>shorten-pair</code> property of the <code>Hairpin</code> object. Positive values move endpoints to the right, negative to the left. Unlike the <code>minimum-length</code> 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.
The ends of hairpins may be offset by setting the <code>shorten-pair</code> property of the <code>Hairpin</code> object. Positive values move endpoints to the right, negative to the left. Unlike the <code>minimum-length</code> 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.


<lilypond version="2.24.0">
<lilypond version="2.24">
{
{
   c'1~\<
   c'1~\<

Revision as of 18:53, 16 November 2025

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.

\version "2.24"

{
  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
}