]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/hara-kiri-keep-previous-settings.ly
Imported Upstream version 2.16.0
[lilypond.git] / input / regression / hara-kiri-keep-previous-settings.ly
1 \version "2.16.0"
2
3 \header { texidoc =
4
5           "Inserting the harakiri settings globally into the Staff context should
6 not erase previous settings to the Staff context.
7 "
8
9 }
10
11 \layout {
12   ragged-right= ##t
13   \context {
14     \Staff
15     \override StaffSymbol #'line-count = 4
16     \consists "Ambitus_engraver"
17     \remove "Clef_engraver"
18   }
19 }
20
21 % Old \RemoveEmptyStaffContext: Will erase previous settings...
22 \score {
23   <<
24     \new Staff \relative c'' {  c4 c c c \break s1 \break c4 c c c \break c c c c}
25     \new Staff \relative c'' {  d4 d d d        s1        s1              s1 }
26     \new Staff \relative c'' {  e4 e e e        s1        e4 e e e        s1 }
27   >>
28   \layout {
29     \context { \RemoveEmptyStaffContext }
30   }
31 }
32
33 % New \RemoveEmptyStaves settings: Preserves previous settings...
34 \score {
35   <<
36     \new Staff \relative c'' {  c4 c c c \break s1 \break c4 c c c \break c c c c}
37     \new Staff \relative c'' {  d4 d d d        s1        s1              s1 }
38     \new Staff \relative c'' {  e4 e e e        s1        e4 e e e        s1 }
39   >>
40   \layout {
41     \context { \Staff \RemoveEmptyStaves }
42   }
43 }