]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-an-extra-staff-at-a-line-break.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[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.di.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.18.0"
8
9 \header {
10   lsrtags = "breaks, contexts-and-engravers, staff-notation, workaround"
11
12   texidoc = "
13 When adding a new staff at a line break, some extra space is
14 unfortunately added at the end of the line before the break (to fit in
15 a key signature change, which  will never be printed anyway).  The
16 workaround is to add a setting of
17 @code{Staff.explicitKeySignatureVisibility} as is shown in the example.
18
19
20 "
21   doctitle = "Adding an extra staff at a line break"
22 } % begin verbatim
23
24 \score {
25   \new StaffGroup \relative c'' {
26     \new Staff
27     \key f \major
28     c1 c^"Unwanted extra space" \break
29     << { c1 | c }
30        \new Staff {
31          \key f \major
32          \once \omit Staff.TimeSignature
33          c1 | c
34        }
35     >>
36     c1 | c^"Fixed here" \break
37     << { c1 | c }
38        \new Staff {
39          \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
40          \key f \major
41          \once \omit Staff.TimeSignature
42          c1 | c
43        }
44     >>
45   }
46 }