]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/controlling-spanner-visibility-after-a-line-break.ly
Doc: run makelsr locally
[lilypond.git] / Documentation / snippets / controlling-spanner-visibility-after-a-line-break.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "tweaks-and-overrides, expressive-marks"
11
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
13
14   texidoces = "
15 La visibilidad de los objetos de extensión que acaban en la primera
16 nota después de un salto de línea está controlada por la función de
17 callback de @code{after-line-breaking}
18 @code{ly:spanner::kill-zero-spanned-time}.
19
20 Para los objetos como los glissandos y los reguladores, el
21 comportamiento predeterminado es ocultar el objeto de extensión
22 después del salto; la inhabilitación de la función de callback hace
23 que el objeto de extensión roto por la izquierda pueda mostrarse.
24
25 De forma inversa, los objetos de extensión que son visibles
26 normalmente, como los objetos de extensión de texto, se pueden
27 ocultar habilitando la función de callback.
28 "
29
30   doctitlees = "Controlar la visibilidad de los objetos de
31   extensión después de un salto de línea"
32
33
34   texidoc = "
35 The visibility of spanners which end on the first note following a line
36 break is controlled by the @code{after-line-breaking} callback
37 @code{ly:spanner::kill-zero-spanned-time}.
38
39 For objects such as glissandos and hairpins, the default behaviour is
40 to hide the spanner after a break; disabling the callback will allow
41 the left-broken span to be shown.
42
43 Conversely, spanners which are usually visible, such as text spans, can
44 be hidden by enabling the callback.
45
46 "
47   doctitle = "Controlling spanner visibility after a line break"
48 } % begin verbatim
49
50 \paper { ragged-right = ##t }
51
52 \relative c'' {
53   \override Hairpin #'to-barline = ##f
54   \override Glissando #'breakable = ##t
55   % show hairpin
56   \override Hairpin #'after-line-breaking = ##t
57   % hide text span
58   \override TextSpanner #'after-line-breaking =
59     #ly:spanner::kill-zero-spanned-time
60   e2\<\startTextSpan
61   % show glissando
62   \override Glissando #'after-line-breaking = ##t
63   f2\glissando
64   \break
65   f,1\!\stopTextSpan
66 }