]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/moving-the-ends-of-hairpins.ly
New upstream version 2.19.65
[lilypond.git] / Documentation / snippets / moving-the-ends-of-hairpins.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.55
8 \version "2.19.55"
9
10 \header {
11   lsrtags = "expressive-marks"
12
13   texidoc = "
14 The ends of hairpins may be offset by setting the @code{shorten-pair}
15 property of the @code{Hairpin} object.  Positive values move endpoints
16 to the right, negative to the left.  Unlike the @code{minimum-length}
17 property, this property only affects the appearance of the hairpin; it
18 does not adjust horizontal spacing (including the position of bounding
19 dynamics).  This method is thus suitable for fine-tuning a hairpin
20 within its allotted space.
21
22 "
23   doctitle = "Moving the ends of hairpins"
24 } % begin verbatim
25
26
27 {
28   c'1~\<
29   c'2~ c'\!
30   \once \override Hairpin.shorten-pair = #'(2 . 2)
31   c'1~\<
32   c'2~ c'\!
33   \once \override Hairpin.shorten-pair = #'(-2 . -2)
34   c'1~\<
35   c'2~ c'\!
36   c'1~\p-\tweak shorten-pair #'(2 . 0)\<
37   c'2~ c'\ffff
38 }