X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fdisplay-bracket-with-only-one-staff-in-a-system.ly;h=a7d99645bc1b780e5647328e8fbca6570f0e2dc0;hb=a1bd3326ea445059061794aec1d4fe03b7c63555;hp=0213ae17dc6dbc4db4b631cb807dac0a1dd04fa3;hpb=7ea158846edf78edd2ebb89a7c9b5f9dbca67bf7;p=lilypond.git diff --git a/Documentation/snippets/display-bracket-with-only-one-staff-in-a-system.ly b/Documentation/snippets/display-bracket-with-only-one-staff-in-a-system.ly index 0213ae17dc..a7d99645bc 100644 --- a/Documentation/snippets/display-bracket-with-only-one-staff-in-a-system.ly +++ b/Documentation/snippets/display-bracket-with-only-one-staff-in-a-system.ly @@ -1,19 +1,20 @@ %% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% generated from LSR http://lsr.di.unimi.it %% Make any changes in LSR itself, or in Documentation/snippets/new/ , %% and then run scripts/auxiliar/makelsr.py %% %% This file is in the public domain. -\version "2.17.15" +\version "2.18.0" \header { lsrtags = "staff-notation, tweaks-and-overrides" texidoc = " If there is only one staff in one of the staff types @code{ChoirStaff} -or @code{StaffGroup}, the bracket and the starting bar line will not be -displayed as standard behavior. This can be changed by overriding the -relevant properties. +or @code{StaffGroup}, by default the bracket and the starting bar line +will not be displayed. This can be changed by overriding +@code{collapse-height} to set its value to be less than the number of +staff lines in the staff. Note that in contexts such as @code{PianoStaff} and @code{GrandStaff} where the systems begin with a brace instead of a bracket, another @@ -23,28 +24,22 @@ property has to be set, as shown on the second system in the example. doctitle = "Display bracket with only one staff in a system" } % begin verbatim - -\markup \left-column { - \score { - \new StaffGroup << - % Must be lower than the actual number of staff lines - \override StaffGroup.SystemStartBracket.collapse-height = #1 - \override Score.SystemStartBar.collapse-height = #1 - \new Staff { - c'1 - } - >> - \layout { } - } - \null - \score { - \new PianoStaff << - \override PianoStaff.SystemStartBrace.collapse-height = #1 - \override Score.SystemStartBar.collapse-height = #1 - \new Staff { - c'1 - } - >> - \layout { } - } +\score { + \new StaffGroup << + % Must be lower than the actual number of staff lines + \override StaffGroup.SystemStartBracket.collapse-height = #4 + \override Score.SystemStartBar.collapse-height = #4 + \new Staff { + c'1 + } + >> +} +\score { + \new PianoStaff << + \override PianoStaff.SystemStartBrace.collapse-height = #4 + \override Score.SystemStartBar.collapse-height = #4 + \new Staff { + c'1 + } + >> }