]> git.donarmstrong.com Git - lilypond.git/blob - input/new/display-bracket-with-only-one-staff-in-a-system.ly
Doc-es: pre-merge update of texidoc committishes.
[lilypond.git] / input / new / display-bracket-with-only-one-staff-in-a-system.ly
1 \version "2.12.0"
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} or @code{StaffGroup}, the bracket and the starting
6 bar line will not be displayed as standard behavior.  This can be changed
7 by overriding the relevant properties.
8
9 Note that in contexts such as @code{PianoStaff} and @code{GrandStaff}
10 where the systems begin with a brace instead of a bracket, another
11 property has to be set, as shown on the second system in the example.
12 "
13   doctitle = "Display bracket with only one staff in a system"
14 }
15
16 \markup \left-column {
17   \score {
18     \new StaffGroup <<
19       % Must be lower than the actual number of staff lines
20       \override StaffGroup.SystemStartBracket #'collapse-height = #1
21       \override Score.SystemStartBar #'collapse-height = #1
22       \new Staff {
23         c'1
24       }
25     >>
26     \layout { }
27   }
28   \score {
29     \new PianoStaff <<
30       \override PianoStaff.SystemStartBrace #'collapse-height = #1
31       \override Score.SystemStartBar #'collapse-height = #1
32       \new Staff {
33         c'1
34       }
35     >>
36     \layout { }
37   }
38 }