Hi. I'm trying to typeset some dance music (contradance and waltz) and I'm running into a problem with volta repeat brackets. Actually, I'm running into a lot of problems (I'm new at lilypond), and I've got them all solved and this volta repeat bracket problem came up.
What I'm trying to do is get chord names above the staff, key of G major, and an alternate ending on part b of the piece. Here is an abridged snippet of the .ly file I'm working with:
partA = { << \repeat volta 2 { \chords { d2. | g | a2:m d4 | g2. \break | }
} \repeat volta 2 { \key g \major \relative c'' { a4 fs8 g a4 | b d,8 g b4 | c8 b a g fs a | g2. |} } >> } partB = { << \chords {
\repeat volta 2 { c2. | g | } \alternative { { a2.:m | d } { a2:m d4 | g2. } } } \repeat volta 2 { \key g \major \relative c'' {
e4 d8 c b a | d4 c8 b a g | } } \alternative { { \relative { c'8 b a g fs g | a4 fs d'} } { \relative { c'8 b a g fs a | g4 r r } } } >>
} { \time 3/4 % \partA \partB }
---------------------------------------- If I run this through lilypond, part B displays correctly (chords above the staff, alternative volta brackets in place, proper key signature, proper time signature, etc.). If I delete the % commenting out part A, I lose the alternative volta brackets, which is unacceptable.
Why? And how do I get it to keep the volta brackets, the chords above the staff, and the proper key and time signatures?