lilypond-user
[Top][All Lists]

## Re: repeat bar at the beginning of a piece

 From: Marc Hohl Subject: Re: repeat bar at the beginning of a piece Date: Mon, 10 May 2010 10:20:49 +0200 User-agent: Thunderbird 2.0.0.24 (X11/20100317)

Steve Tarr schrieb:

I'm working with 2.13.20, trying to reproduce a piece of shape-note music that has a 4-dot (with no line) repeat bar at the beginning of the piece.


The snippet titled "Printing a repeat sign at the beginning of a piece" works as described if I use the "|:" bar, but doesn't display the bar if I use ":" (or any other bar style) instead.

What's special about "|:" in this case?  Is there some property I can
override to allow arbitrary bar lines to be displayed at the beginning

of a piece? Or is there something I can change so that ":" will be treated as a repeat bar just as "|:" is?
As a somewhat hackish solution, you can start the piece with an invisible grace note, like this:

\version "2.13.20"

test = \relative c' {
\grace s16
\bar ":"
\repeat volta 2 {
c4 d e f | g f e d
}
}

\score {
\new Staff {
\new Voice {
\test
}
}
}


If you have multiple voices, make sure that the invisible grace note is in every
voice, otherwise the output will be cluttered.

HTH,

Marc



-Steve Tarr

_______________________________________________
lilypond-user mailing list