lilypond-user
[Top][All Lists]
Advanced

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

Re: Lyricmode Voices within Repeat Volta


From: Valentin Villenave
Subject: Re: Lyricmode Voices within Repeat Volta
Date: Sun, 3 Feb 2019 07:22:28 +0000

On 2/2/19, Mike iLL <address@hidden> wrote:
> I seem to be almost there, but the repeat signs are not produced by the
> following code

Greetings,
there are spurious curly braces in your code. I’ve removed them and
replaced one \new Voice with \context Voice (which allows you to
re-use an existing context rather than creating a new one every time):

%%%%%%%%%

melody = \relative c'' {
  \clef treble
  \key c \major
  \time 3/4
  \set Score.voltaSpannerDuration = #(ly:make-moment 3/4)
  #(ly:expect-warning "cannot end volta")
  \repeat volta 2 {
    \new Voice = "chorus" {
      \voiceOne
      c2. | d | e | d |
      c |
    }
    e4 d c | e4 d c | e4 d c |
  }
  \alternative {
    \new Voice = "verse" {
      c2. | d | e | f |
      g | f | e | d |
    }
    \context Voice = "verse" {
      c | d | e | f |
      e | f | e | c |
    }
  }
}


chorus =  \lyricmode {
  These are words they are.
}

verse =  \lyricmode {
  This one here will
  be the first verse.
  This one here will
  be the se -- cond.
}


harmonies = \chordmode {
  c2.
}

\score {
  <<
    \new ChordNames {
      \set chordChanges = ##t
      \harmonies
    }
    \new Staff  {
      \new Voice = "main" { \melody }
    }
    \new Lyrics \lyricsto "chorus" \chorus
    \new Lyrics \lyricsto "verse" \verse
  >>
}

%%%%%%%%%%%%%

Hope this helps!

Cheers,
V.



reply via email to

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