lilypond-user
[Top][All Lists]
Advanced

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

Re: Disappearing volta brackets? Need help.


From: Colin Wilding
Subject: Re: Disappearing volta brackets? Need help.
Date: Wed, 29 Mar 2006 15:35:31 +0100

I think the problem is with the order in which you nest things - << chordsA musicA >> + << chordsB musicB >>.  If you do << { chordsA chordsB } { musicA musicB } >> it works.
Like this (in version 2.8):

\version "2.8.0"
\include "english.ly"

partA = {
     \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 = {
      \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  } }
      }
}

chPartA = \chordmode {
     \repeat volta 2
        { d2.           | g               | a2:m d4          | g2.         \break | }
}
chPartB = \chordmode {
       \repeat volta 2 {
          c2.           | g               |
       }
       \alternative { { a2.:m | d } { a2:m d4 | g2. } }
}

\score { <<
        \time 3/4
        \new ChordNames { \chPartA \chPartB }
        \new Staff { \partA \partB }
     >>
}


_____________________


Message: 5
Date: Tue, 28 Mar 2006 10:49:05 -0500
From: "Buddha Buck" <address@hidden>
Subject: Disappearing volta brackets? Need help.
Cc: "Lilypond User Group" <address@hidden>
Message-ID:
       <address@hidden>
Content-Type: text/plain; charset="iso-8859-1"

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:

---------------------------
\include "english.ly"

\version "2.7.24"

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?

reply via email to

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