Jump to content

Mensurstriche layout (bar lines between the staves): Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
''Mensurstriche'', bar lines between but not through staves, can be printed by setting <code>measureBarType</code> to <code>&quot;-span|&quot;</code> and using a grouping context that allows span bars, such as <code>StaffGroup</code>.
''Mensurstriche'', bar lines between but not through staves, can be printed by setting <code>measureBarType</code> to <code>&quot;-span|&quot;</code> and using a grouping context that allows span bars, such as <code>StaffGroup</code>.


<lilypond version="2.24.0">
<lilypond version="2.24">
\layout {
\layout {
   \context {
   \context {
Line 21: Line 21:
</lilypond>
</lilypond>


[[Category:Ancient notation]]
[[Category:Contexts and engravers]]
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Ancient notation]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Contexts and engravers]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 18:06, 10 December 2025

Mensurstriche, bar lines between but not through staves, can be printed by setting measureBarType to "-span|" and using a grouping context that allows span bars, such as StaffGroup.

\version "2.24"

\layout {
  \context {
    \Staff
    measureBarType = "-span|"
  }
}

music = \fixed c'' {
  c1
  d2 \section e2
  f1 \fine
}

\new StaffGroup <<
  \new Staff \music
  \new Staff \music
>>