]> git.donarmstrong.com Git - lilypond.git/blob - input/new/display-bracket-with-only-one-staff-in-a-system.ly
Merge master into nested-bookparts
[lilypond.git] / input / new / display-bracket-with-only-one-staff-in-a-system.ly
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.
9
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.
13 "
14   doctitle = "Display bracket with only one staff in a system"
15 }
16
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
25       }
26     >>
27     \layout { }
28   }
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
35       }
36     >>
37     \layout { }
38   }
39 }