]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/moving-the-ends-of-hairpins.ly
New upstream version 2.19.65
[lilypond.git] / Documentation / snippets / new / moving-the-ends-of-hairpins.ly
diff --git a/Documentation/snippets/new/moving-the-ends-of-hairpins.ly b/Documentation/snippets/new/moving-the-ends-of-hairpins.ly
new file mode 100644 (file)
index 0000000..6c8438c
--- /dev/null
@@ -0,0 +1,30 @@
+\version "2.19.55"
+
+\header {
+  lsrtags = "expressive-marks"
+
+  texidoc = "
+The ends of hairpins may be offset by setting the @code{shorten-pair}
+property of the @code{Hairpin} object.  Positive values move endpoints
+to the right, negative to the left.  Unlike the @code{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.
+
+"
+  doctitle = "Moving the ends of hairpins"
+}
+
+{
+  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
+}