]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/display-bracket-with-only-one-staff-in-a-system.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / display-bracket-with-only-one-staff-in-a-system.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.18.0"
8
9 \header {
10   lsrtags = "staff-notation, tweaks-and-overrides"
11
12   texidoc = "
13 If there is only one staff in one of the staff types @code{ChoirStaff}
14 or @code{StaffGroup}, by default the bracket and the starting bar line
15 will not be displayed.  This can be changed by overriding
16 @code{collapse-height} to set its value to be less than the number of
17 staff lines in the staff.
18
19 Note that in contexts such as @code{PianoStaff} and @code{GrandStaff}
20 where the systems begin with a brace instead of a bracket, another
21 property has to be set, as shown on the second system in the example.
22
23 "
24   doctitle = "Display bracket with only one staff in a system"
25 } % begin verbatim
26
27 \score {
28   \new StaffGroup <<
29     % Must be lower than the actual number of staff lines
30     \override StaffGroup.SystemStartBracket.collapse-height = #4
31     \override Score.SystemStartBar.collapse-height = #4
32     \new Staff {
33       c'1
34     }
35   >>
36 }
37 \score {
38   \new PianoStaff <<
39     \override PianoStaff.SystemStartBrace.collapse-height = #4
40     \override Score.SystemStartBar.collapse-height = #4
41     \new Staff {
42       c'1
43     }
44   >>
45 }