]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/display-bracket-with-only-one-staff-in-a-system.ly
Merge branch 'lilypond/translation' of ssh://trettig@git.sv.gnu.org/srv/git/lilypond...
[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
8   texidoc = "
9 If there is only one staff in one of the staff types @code{ChoirStaff},
10 @code{InnerChoirStaff}, @code{InnerStaffGroup} or @code{StaffGroup},
11 the bracket and the starting bar line will not be displayed as standard
12 behavior.  This can be changed by overriding the relevant properties,
13 as demonstrated in this example.
14
15 Note that in some contexts such as @code{PianoStaff} where the systems
16 begin with a brace instead of a bracket, another property has to be
17 set, as shown on the second system in the example. 
18
19 "
20   doctitle = "Display bracket with only one staff in a system"
21 } % begin verbatim
22 \markup \column {
23   \score {
24     \new StaffGroup <<
25     % Must be lower than your actual amount of staff lines
26     \override StaffGroup.SystemStartBracket #'collapse-height = #1
27     \override Score.SystemStartBar #'collapse-height = #1
28     \new Staff {
29       c'1
30     }
31     >>
32     \layout {ragged-right = ##t}
33   }
34   \score {
35     \new PianoStaff <<
36     \override PianoStaff.SystemStartBrace #'collapse-height = #1
37     \override Score.SystemStartBar #'collapse-height = #1
38     \new Staff {
39       c'
40     }
41     >> 
42     \layout {ragged-right = ##t}
43   }
44