lilypond-user
[Top][All Lists]
Advanced

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

Re: Missing end-of-stave barline?


From: Mark Probert
Subject: Re: Missing end-of-stave barline?
Date: Mon, 9 Jan 2023 17:32:38 -0500


Many thanks, Valentin! I find, as a casual user of LP, I get in a “working rut,” using what works without fulling understanding then consequences. This explanation is very helpful to me and I’m heading back to rework my music.

-mark.


On 9 Jan 2023 at 23:57:12, Valentin Petzel <valentin@petzel.at> wrote:

Hello Mark,


somewhat OT, but you should let \repeat volta handle the setting of bar lines. If you want winged repeats set


\set Staff.startRepeatBarType = #"[|:"

\set Staff.endRepeatBarType = #":|]"


or even for all Staves


\set Score.startRepeatBarType = #"[|:"

\set Score.endRepeatBarType = #":|]"


Now to your actual problem: As Jean already said with a recent version of Lilypond you should let most of the Bars be handled by Lilypond itself:


Use \repeat volta for repeats and \repeat segno for jumps, and use \section instead of "||" and \fine instead of "|." and set the corresponding context properties as described in this part of the documentation:


https://lilypond.org/doc/v2.24/Documentation/notation/bars#automatic-bar-lines


This way of doing things allows us to tell Lilypond what we want instead of manually specifying what we want things to look like.


But if you want to do things manually you need to keep in mind that at one time we can only have one bar line, so \bar "||" \bar "[|:" will only keep \bar "[|:". Instead of this you want to use a bar that is "[|:" in staff and after line breaks and "||" and the end of line. This can be done using


\bar "[|:-||"


In fact \bar "[|:" will not print anything at the end of a bar, so you should usually default to \bar "[|:-|" (single Bar line at end of line). (The same holds true for ".|:" by the way!).


Using \repeat, \section, \fine and such will automatically take care of constellations such as barline-repeat or double repeats.


Cheers,

Valentin


Am Montag, 9. Jänner 2023, 12:07:07 CET schrieb Mark Probert:

>  Thanks!

>

> -mark.

>

> On 9 Jan 2023 at 17:58:10, Jean Abou Samra <jean@abou-samra.fr> wrote:

> > Le 9 janv. 2023 à 07:56, Mark Probert <probertm@gmail.com> a écrit :

> >

> > Hi.

> >

> > When I run this snippet the barline at the end of first stave, which

> > I think should be a “||”, goes “missing” (there is no barline at all).

> >

> > Is there a correct way of setting the end of stave barline in this kind of

> > situation?

> >

> >

> >

> >

> > Look up \section in the manual. It is designed for exactly this.

> >

> > Best,

> > Jean




reply via email to

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