[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing bar connecting grouped staves
From: |
Carl Sorensen |
Subject: |
Re: Removing bar connecting grouped staves |
Date: |
Sat, 17 Oct 2020 20:57:04 +0000 |
User-agent: |
Microsoft-MacOutlook/10.10.1a.200914 |
That is called a SpanBar. BarLine only exists within a staff. See the bottom
of this section of the Notation Reference:
https://lilypond.org/doc/v2.19/Documentation/notation/bars#bar-lines
Following the links to SpanBar, and then to span_bar_engraver, you will learn
that the span_bar_engraver is in the StaffGroup context.
So what we need to do is omit the StaffGroup.SpanBar.
\version "2.19.82"
\score {
<<
\new Staff {c'4 d' e' f'}
\new Staff {c'4. d'4. e'4}
\new Staff {c'2 d'2}
>>
\layout{
\omit StaffGroup.SpanBar
}
}
HTH,
Carl
On 10/17/20, 2:45 PM, "lilypond-user on behalf of Gilberto Agostinho"
<lilypond-user-bounces+carl.d.sorensen=gmail.com@gnu.org on behalf of
gilbertohasnofb@googlemail.com> wrote:
Hi everyone,
I am trying to create a diagram using Lilypond and I would like to
remove the vertical bar connecting a series of grouped staves. This is
the bar that is in the left hand side of a score and runs through all
staves, and where instrument names are normally written. Would it be
possible to hide it somehow?
Below is a minimal example:
\version "2.19.82"
\score {
<<
\new Staff {c'4 d' e' f'}
\new Staff {c'4. d'4. e'4}
\new Staff {c'2 d'2}
>>
\layout{
\omit Score.BarLine
}
}
https://i.postimg.cc/W3krqyTF/line.png
The diagram I am creating has a complex rhythm and I am using a group of
staves so that the rhythm of each line matches the one above, which is
why I am trying to use this trick of grouping them and then hiding the
connecting bar.
Many thanks,
Gilberto