X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fnew%2Fcontrolling-spanner-visibility-after-a-line-break.ly;fp=Documentation%2Fsnippets%2Fnew%2Fcontrolling-spanner-visibility-after-a-line-break.ly;h=0000000000000000000000000000000000000000;hb=32a34dcef0c0041c6d62677487a380b5c8b85712;hp=8c9c8ce80a3ef38e43548f87bda3511c28d14ef2;hpb=f41973ff763d5972a85995b6d40c864281ec6714;p=lilypond.git diff --git a/Documentation/snippets/new/controlling-spanner-visibility-after-a-line-break.ly b/Documentation/snippets/new/controlling-spanner-visibility-after-a-line-break.ly deleted file mode 100644 index 8c9c8ce80a..0000000000 --- a/Documentation/snippets/new/controlling-spanner-visibility-after-a-line-break.ly +++ /dev/null @@ -1,37 +0,0 @@ -\version "2.14.0" - -\header { - lsrtags = "expressive-marks, tweaks-and-overrides" - texidoc = "The visibility of spanners which end on the first note -following a line break is controlled by the @code{after-line-breaking} -callback @code{ly:spanner::kill-zero-spanned-time}. - -For objects such as glissandos and hairpins, the default behaviour is -to hide the spanner after a break; disabling the callback will allow -the left-broken span to be shown. - -Conversely, spanners which are usually visible, such as text spans, -can be hidden by enabling the callback. -" - - doctitle = "Controlling spanner visibility after a line break" -} - -\paper { ragged-right = ##t } - -\relative c'' { - \override Hairpin #'to-barline = ##f - \override Glissando #'breakable = ##t - % show hairpin - \override Hairpin #'after-line-breaking = ##t - % hide text span - \override TextSpanner #'after-line-breaking = - #ly:spanner::kill-zero-spanned-time - e2\<\startTextSpan - % show glissando - \override Glissando #'after-line-breaking = ##t - f2\glissando - \break - f,1\!\stopTextSpan -} -