lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Straight brace example


From: Trevor Bača
Subject: Straight brace example
Date: Wed, 30 Nov 2005 16:49:47 -0600

Recent releases after about 2.7.17 make straight vertical system
delimiters an easy alternative to traditional braces and brackets.

The key is SystemStartBar, possibly combined with #'thickness and #'padding.

Here're some examples:

%%%%%% START STRAIGHT DELIMITER SNIPPET  %%%%%%

\layout {
   raggedright = ##t
}

\markup {\wordwrap {StaffGroup with SystemStartBar:}}

\score {
   <<
      \new StaffGroup <<
         \set StaffGroup.systemStartDelimiter = #'SystemStartBar
         \new Staff {s1}
         \new Staff {\clef bass s1}
      >>
   >>
}

\markup {\wordwrap {With thickness:}}

\score {
   <<
      \new StaffGroup <<
         \set StaffGroup.systemStartDelimiter = #'SystemStartBar
         \override StaffGroup.SystemStartBar #'thickness = #6
         \new Staff {s1}
         \new Staff {\clef bass s1}
      >>
   >>
}

\markup {\wordwrap {With padding:}}

\score {
   <<
      \new StaffGroup <<
         \set StaffGroup.systemStartDelimiter = #'SystemStartBar
         \override StaffGroup.SystemStartBar #'padding = #1
         \new Staff {s1}
         \new Staff {\clef bass s1}
      >>
   >>
}

\markup {\wordwrap {With both thickness and padding:}}

\score {
   <<
      \new StaffGroup <<
         \set StaffGroup.systemStartDelimiter = #'SystemStartBar
         \override StaffGroup.SystemStartBar #'thickness = #6
         \override StaffGroup.SystemStartBar #'padding = #1
         \new Staff {s1}
         \new Staff {\clef bass s1}
      >>
   >>
}

%%%%%%% END SNIPPET %%%%%%%%%%%%%%%%%%

Should work for certain modern layouts, and should also answer
Eduardo's question from October in

http://lists.gnu.org/archive/html/lilypond-user/2005-10/msg00196.html




--
Trevor Bača
address@hidden

Attachment: straight-brace.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]