]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/display-bracket-with-only-one-staff-in-a-system.ly
Doc-fr: update for 2.16.1 (second part)
[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.dsi.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.16.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}, the bracket and the starting bar line will not be
15 displayed as standard behavior.  This can be changed by overriding the
16 relevant properties.
17
18 Note that in contexts such as @code{PianoStaff} and @code{GrandStaff}
19 where the systems begin with a brace instead of a bracket, another
20 property has to be set, as shown on the second system in the example.
21
22 "
23   doctitle = "Display bracket with only one staff in a system"
24 } % begin verbatim
25
26
27 \markup \left-column {
28   \score {
29     \new StaffGroup <<
30       % Must be lower than the actual number of staff lines
31       \override StaffGroup.SystemStartBracket #'collapse-height = #1
32       \override Score.SystemStartBar #'collapse-height = #1
33       \new Staff {
34         c'1
35       }
36     >>
37     \layout { }
38   }
39   \null
40   \score {
41     \new PianoStaff <<
42       \override PianoStaff.SystemStartBrace #'collapse-height = #1
43       \override Score.SystemStartBar #'collapse-height = #1
44       \new Staff {
45         c'1
46       }
47     >>
48     \layout { }
49   }
50 }