]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/display-bracket-with-only-one-staff-in-a-system.ly
Merge branch 'master' of ssh://kainhofer@git.sv.gnu.org/srv/git/lilypond into dev...
[lilypond.git] / input / lsr / display-bracket-with-only-one-staff-in-a-system.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.38"
4
5 \header {
6   lsrtags = "staff-notation, tweaks-and-overrides"
7  texidoc = "
8 If there is only one staff in one of the staff types @code{ChoirStaff},
9 @code{InnerChoirStaff}, @code{InnerStaffGroup} or @code{StaffGroup},
10 the bracket and the starting bar line will not be displayed as standard
11 behavior. This can be changed with:
12
13
14 @code{\\override [staffcontext].SystemStartBracket #'collapse-height =
15 #1}
16  and
17
18 @code{\\override [staffcontext].SystemStartBar #'collapse-height = #1}
19
20
21 This applies to all staff contexts with
22 @code{systemStartDelimiter}-property set to @code{'SystemStartBracket}.
23
24
25
26 For staff contexts with @code{'SystemStartBrace}, such as
27 @code{PianoStaff}, this tweaking can be used as well.
28
29
30
31 " }
32 % begin verbatim
33 \layout {
34   ragged-right = ##t
35   indent = 0\cm
36 }
37
38 \score {
39   \new StaffGroup <<
40     % Must be lower than your actual amount off staff lines
41     \override StaffGroup.SystemStartBracket #'collapse-height = #1
42     \override Score.SystemStartBar #'collapse-height = #1
43     \new Staff {
44       c'4 d' e' f'
45     }
46   >>
47 }
48
49 \score {
50   \new PianoStaff <<
51     \override PianoStaff.SystemStartBrace #'collapse-height = #1
52     \override Score.SystemStartBar #'collapse-height = #1
53     \new Staff {
54       c'4 d' e' f'
55     }
56   >>
57 }