X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fcontrolling-spanner-visibility-after-a-line-break.ly;h=a434f35d753d61cc3b932bcee98abb52c43d475b;hb=730d4eb3e0328e8ba0b376f8191a5bb6ae7f904c;hp=7e9312edb3e6fe9759d5033c570101c475123143;hpb=f115fc1bdeb3fdd356db670ef4fe3e6b9aee019c;p=lilypond.git diff --git a/Documentation/snippets/controlling-spanner-visibility-after-a-line-break.ly b/Documentation/snippets/controlling-spanner-visibility-after-a-line-break.ly index 7e9312edb3..a434f35d75 100644 --- a/Documentation/snippets/controlling-spanner-visibility-after-a-line-break.ly +++ b/Documentation/snippets/controlling-spanner-visibility-after-a-line-break.ly @@ -1,42 +1,44 @@ -% Do not edit this file; it is automatically -% generated from Documentation/snippets/new -% This file is in the public domain. -%% Note: this file works from version 2.13.1 -\version "2.13.16" +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.di.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.18.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}. + + 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. -" +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" } % begin verbatim - \paper { ragged-right = ##t } \relative c'' { - \override Hairpin #'to-barline = ##f - \override Glissando #'breakable = ##t + \override Hairpin.to-barline = ##f + \override Glissando.breakable = ##t % show hairpin - \override Hairpin #'after-line-breaking = ##t + \override Hairpin.after-line-breaking = ##t % hide text span - \override TextSpanner #'after-line-breaking = + \override TextSpanner.after-line-breaking = #ly:spanner::kill-zero-spanned-time e2\<\startTextSpan % show glissando - \override Glissando #'after-line-breaking = ##t + \override Glissando.after-line-breaking = ##t f2\glissando \break f,1\!\stopTextSpan } -