]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/removing-the-first-empty-line.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / removing-the-first-empty-line.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.16.0"
8
9 \header {
10   lsrtags = "breaks, staff-notation, tweaks-and-overrides"
11
12   texidoc = "
13 The first empty staff can also be removed from the score by setting the
14 @code{VerticalAxisGroup} property @code{remove-first}. This can be done
15 globally inside the @code{\\layout} block, or locally inside the
16 specific staff that should be removed.  In the latter case, you have to
17 specify the context (@code{Staff} applies only to the current staff) in
18 front of the property.
19
20 The lower staff of the second staff group is not removed, because the
21 setting applies only to the specific staff inside of which it is
22 written.
23
24 "
25   doctitle = "Removing the first empty line"
26 } % begin verbatim
27
28
29 \layout {
30   \context {
31     \Staff \RemoveEmptyStaves
32     % To use the setting globally, uncomment the following line:
33     % \override VerticalAxisGroup #'remove-first = ##t
34   }
35 }
36 \new StaffGroup <<
37   \new Staff \relative c' {
38     e4 f g a \break
39     c1
40   }
41   \new Staff {
42     % To use the setting globally, comment this line,
43     % uncomment the line in the \layout block above
44     \override Staff.VerticalAxisGroup #'remove-first = ##t
45     R1 \break
46     R
47   }
48 >>
49 \new StaffGroup <<
50   \new Staff \relative c' {
51     e4 f g a \break
52     c1
53   }
54   \new Staff {
55     R1 \break
56     R
57   }
58 >>