LSR: Update.
[lilypond.git] / input / new / display-bracket-with-only-one-staff-in-a-system.ly
blob816dda50f35f9ff732ab6ede986cf684aa0ea9a1
1 \version "2.11.61"
2 \header {
3 lsrtags = "staff-notation,tweaks-and-overrides"
4 texidoc = "If there is only one staff in one of the staff types
5 @code{ChoirStaff}, @code{InnerChoirStaff}, @code{InnerStaffGroup}
6 or @code{StaffGroup}, the bracket and the starting bar line will not
7 be displayed as standard behavior. This can be changed by overriding
8 the relevant properties.
10 Note that in contexts such as @code{PianoStaff} and @code{GrandStaff}
11 where the systems begin with a brace instead of a bracket, another
12 property has to be set, as shown on the second system in the example.
14 doctitle = "Display bracket with only one staff in a system"
17 \markup \left-column {
18 \score {
19 \new StaffGroup <<
20 % Must be lower than the actual number of staff lines
21 \override StaffGroup.SystemStartBracket #'collapse-height = #1
22 \override Score.SystemStartBar #'collapse-height = #1
23 \new Staff {
24 c'1
27 \layout { }
29 \score {
30 \new PianoStaff <<
31 \override PianoStaff.SystemStartBrace #'collapse-height = #1
32 \override Score.SystemStartBar #'collapse-height = #1
33 \new Staff {
34 c'1
37 \layout { }