]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-an-extra-staff-at-a-line-break.ly
274164feffab411d6fc5af2f4e42a2c4d572eacb
[lilypond.git] / Documentation / snippets / adding-an-extra-staff-at-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.12.2"
8
9 \header {
10   lsrtags = "staff-notation, contexts-and-engravers, breaks"
11
12 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
13   texidoces = "
14 Al añadir un pentagrama nuevo en un salto de línea, por desgracia
15 se añade un espacio adicional al final de la línea antes del salto
16 (reservado para hacer sitio a un cambio de armadura que de todas
17 formas no se va a imprimir). La solución alternativa es añadir un
18 ajuste para @code{Staff.explicitKeySignatureVisibility} como se
19 muestra en el ejemplo.
20
21 "
22   doctitlees = "Añadir un pentagrama adicional en un salto de línea"
23
24   texidoc = "
25 When adding a new staff at a line break, some extra space is
26 unfortunately added at the end of the line before the break (to fit in
27 a key signature change, which  will never be printed anyway).  The
28 workaround is to add a setting of
29 @code{Staff.explicitKeySignatureVisibility} as is shown in the example.
30
31
32 "
33   doctitle = "Adding an extra staff at a line break"
34 } % begin verbatim
35
36 \score {
37   \new StaffGroup \relative c'' {
38     \new Staff
39     \key f \major
40     c1 c^"Unwanted extra space" \break
41     << { c1 | c }
42        \new Staff {
43          \key f \major
44          \once \override Staff.TimeSignature #'stencil = ##f
45          c1 | c
46        }
47     >>
48     c1 | c^"Fixed here" \break
49     << { c1 | c }
50        \new Staff {
51          \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
52          \key f \major
53          \once \override Staff.TimeSignature #'stencil = ##f
54          c1 | c
55        }
56     >>
57   }
58 }
59