Le mercredi 21 juin 2023 à 12:55 -0400, dfro a écrit :

> Hello fellow music engravers,
> 
> I would like to have a staff system end with an 'ending bar line', then 
> \break the staff, and then have the next staff system begin with a 
> 'start repeat'.
> 
> The following code causes the first system to have no bar line at the 
> end, and the 'start repeat' command overrides the 'ending bar line' command:
> 
> 
> ```
> \version "2.24.1"
> 
> \relative c' {
>    c1 \break
>    \bar "|."
> 
>    \bar ".|:"
>    c1 \bar ":|."
> }
> ```
> 
> 
> Is there a simple way to accomplish this?



From LilyPond's point of view, these aren't two separate bar lines. They are 
one single bar line, which is broken into two pieces. So you have to use a 
single \bar command that sets them both, namely:

```
\version "2.24.1"

\relative c' {
   c1 \break
   \bar ".|:-|."
   c1
   \bar ":|."
}
```

With that being said, if this is a typical "dal segno" form, there are built-in 
tools available to do this sort of thing automatically:

```
\version "2.24.1"

\relative c' {
  \repeat segno 2 {
     c1 \break
     \volta 1 \fine
  }
  \repeat volta 2 {
    c1
  }
}
```


See https://lilypond.org/doc/v2.24/Documentation/notation/long-repeats.html

Best,

Jean



Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to