Discussion:
Double bar line suppresses following repeat bar line
Patrick or Cynthia Karl
2014-03-09 20:57:19 UTC
Permalink
The following snippet:

\version "2.18.0"

music = \relative b' {
\repeat volta 2 { \repeat unfold 3 { c4 c c c } }
\alternative {
{ c1 }
{ g1 }
}

% \bar "||"

\break

\repeat volta 2 { \repeat unfold 5 { a4 a a a } }
}

\score {
\new Staff \music
\layout {}
}

places a simple single bar line at the end of the 2nd alternative. My client wishes it to be a double bar line instead. I can do that by uncommenting the "\bar "||" line, but that has the unfortunate side effect of eliminating the initial repeat bar line of the following section.

Is there a way to place a double bar line at the end of the 1st line without interfering with the repeat bar line that follows?
Thomas Morley
2014-03-09 21:18:30 UTC
Permalink
Post by Patrick or Cynthia Karl
\version "2.18.0"
music = \relative b' {
\repeat volta 2 { \repeat unfold 3 { c4 c c c } }
\alternative {
{ c1 }
{ g1 }
}
% \bar "||"
Use \bar ".|:-||" instead
-> http://lilypond.org/doc/v2.18/Documentation/notation-big-page#bar-lines
Post by Patrick or Cynthia Karl
\break
\repeat volta 2 { \repeat unfold 5 { a4 a a a } }
}
\score {
\new Staff \music
\layout {}
}
places a simple single bar line at the end of the 2nd alternative. My client wishes it to be a double bar line instead. I can do that by uncommenting the "\bar "||" line, but that has the unfortunate side effect of eliminating the initial repeat bar line of the following section.
Is there a way to place a double bar line at the end of the 1st line without interfering with the repeat bar line that follows?
HTH,
Harm
Trevor Daniels
2014-03-09 21:28:37 UTC
Permalink
Patrick or Cynthia Karl wrote Sunday, March 09, 2014 8:57 PM
[snippet]
Post by Patrick or Cynthia Karl
places a simple single bar line at the end of the 2nd alternative. My client wishes it to be a double bar line instead. I can do that by uncommenting the "\bar "||" line, but that has the unfortunate side effect of eliminating the initial repeat bar line of the following section.
Is there a way to place a double bar line at the end of the 1st line without interfering with the repeat bar line that follows?
You'll need to define an appropriate bartype and code it at the appropriate place, like this:

\defineBarLine "||.|:" #'("||" ".|:" "")

music = \relative b' {
\repeat volta 2 { \repeat unfold 3 { c4 c c c } }
\alternative {
{ c1 }
{ g1 \bar "||.|:" }
}

% \bar "||"

\break

\repeat volta 2 { \repeat unfold 5 { a4 a a a } }
}

\score {
\new Staff \music
\layout {}
}

More details are a little way down this section:
http://www.lilypond.org/doc/v2.19/Documentation/notation/bars#bar-lines
Thomas Morley
2014-03-09 21:44:41 UTC
Permalink
Post by Trevor Daniels
\defineBarLine "||.|:" #'("||" ".|:" "")
No need for that, ".|:-||" is predefined already.

Cheers,
Harm

Continue reading on narkive:
Loading...