lilypond-user
[Top][All Lists]
Advanced

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

Re: Start repeat after Ending bar line


From: Jean Abou Samra
Subject: Re: Start repeat after Ending bar line
Date: Wed, 21 Jun 2023 19:17:15 +0200
User-agent: Evolution 3.48.3 (3.48.3-1.fc38)

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

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