]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/moving-the-ends-of-hairpins.ly
Issue 5148/2: three-sided-box snippet: use #:properties keyword
[lilypond.git] / Documentation / snippets / new / moving-the-ends-of-hairpins.ly
1 \version "2.19.55"
2
3 \header {
4   lsrtags = "expressive-marks"
5
6   texidoc = "
7 The ends of hairpins may be offset by setting the @code{shorten-pair}
8 property of the @code{Hairpin} object.  Positive values move endpoints
9 to the right, negative to the left.  Unlike the @code{minimum-length}
10 property, this property only affects the appearance of the hairpin; it
11 does not adjust horizontal spacing (including the position of bounding
12 dynamics).  This method is thus suitable for fine-tuning a hairpin
13 within its allotted space.
14
15 "
16   doctitle = "Moving the ends of hairpins"
17 }
18
19 {
20   c'1~\<
21   c'2~ c'\!
22   \once \override Hairpin.shorten-pair = #'(2 . 2)
23   c'1~\<
24   c'2~ c'\!
25   \once \override Hairpin.shorten-pair = #'(-2 . -2)
26   c'1~\<
27   c'2~ c'\!
28   c'1~\p-\tweak shorten-pair #'(2 . 0)\<
29   c'2~ c'\ffff
30 }