X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fcontrolling-spanner-visibility-after-a-line-break.ly;fp=Documentation%2Fsnippets%2Fcontrolling-spanner-visibility-after-a-line-break.ly;h=3a8dee79c46962bfb64c57e0abea5c6ea5dc9caa;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;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 new file mode 100644 index 0000000000..3a8dee79c4 --- /dev/null +++ b/Documentation/snippets/controlling-spanner-visibility-after-a-line-break.ly @@ -0,0 +1,67 @@ +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.14.0 +\version "2.14.0" + +\header { +%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c + + texidoces = " +La visibilidad de los objetos de extensión que acaban en la primera +nota después de un salto de línea está controlada por la función de +callback de @code{after-line-breaking} +@code{ly:spanner::kill-zero-spanned-time}. + +Para los objetos como los glissandos y los reguladores, el +comportamiento predeterminado es ocultar el objeto de extensión +después del salto; la inhabilitación de la función de callback hace +que el objeto de extensión roto por la izquierda pueda mostrarse. + +De forma inversa, los objetos de extensión que son visibles +normalmente, como los objetos de extensión de texto, se pueden +ocultar habilitando la función de callback. +" + + doctitlees = "Controlar la visibilidad de los objetos de + extensión después de un salto de línea" + + + 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" +} % begin verbatim + + +\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 +} +