]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-an-extra-staff-at-a-line-break.ly
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / Documentation / snippets / adding-an-extra-staff-at-a-line-break.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.10"
5
6 \header {
7   lsrtags = "staff-notation, contexts-and-engravers, breaks"
8
9 %% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
10   texidoces = "
11 Al añadir un pentagrama nuevo en un salto de línea, por desgracia
12 se añade un espacio adicional al final de la línea antes del salto
13 (reservado para hacer sitio a un cambio de armadura que de todas
14 formas no se va a imprimir). La solución alternativa es añadir un
15 ajuste para @code{Staff.explicitKeySignatureVisibility} como se
16 muestra en el ejemplo.  En las versiones 2.10 y anteriores,
17 también se necesita un ajuste similar para las indicaciones de
18 compás (véase el ejemplo).
19
20 "
21   doctitlees = "Añadir un pentagrama adicional en un salto de línea"
22
23   texidoc = "
24 When adding a new staff at a line break, some extra space is
25 unfortunately added at the end of the line before the break (to fit in
26 a key signature change, which  will never be printed anyway).  The
27 workaround is to add a setting of
28 @code{Staff.explicitKeySignatureVisibility} as is shown in the example.
29
30
31 "
32   doctitle = "Adding an extra staff at a line break"
33 } % begin verbatim
34
35 \score {
36   \new StaffGroup \relative c'' {
37     \new Staff
38     \key f \major
39     c1 c^"Unwanted extra space" \break
40     << { c1 | c }
41        \new Staff {
42          \key f \major
43          \once \override Staff.TimeSignature #'stencil = ##f
44          c1 | c
45        }
46     >>
47     c1 | c^"Fixed here" \break
48     << { c1 | c }
49        \new Staff {
50          \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
51          \key f \major
52          \once \override Staff.TimeSignature #'stencil = ##f
53          c1 | c
54        }
55     >>
56   }
57 }
58