lilypond-user
[Top][All Lists]
Advanced

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

Alternatives at Beginning


From: Joel C. Salomon
Subject: Alternatives at Beginning
Date: Fri, 04 Oct 2013 14:37:18 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

I searched for this issue, and turned up this thread from 2005:
<http://thread.gmane.org/gmane.comp.gnu.lilypond.general/19134>.  At the
time, the fellow posting the question was advised to "take a look at the
section on 'Manual Repeat Commands' in the manual."

Is this still the only option?

I'm trying to typeset something like the score shown in
<http://youtu.be/xucuWOMmPio>.  Below is a cut-down version of a source
file that seems to accomplish this result.  To my (beginner's) eye, this
looks kind of messy.  But is there a better way?

--Joel Salomon

\version "2.16.2"

Melody = \relative c'' {
  \key a \minor
  \set Score.repeatCommands = #'((volta "1."))
  {
    \partial 4 g4 |
    g4 g g g |
  }
  \set Score.repeatCommands = #'((volta #f) (volta "2.--3."))
  \bar "|:"
  {
    \set Timing.measureLength = #(ly:make-moment 1 4)
    b4 |
    \set Timing.measureLength = #(ly:make-moment 4 4)
    c4 c c c |
  }
  \set Score.repeatCommands = #'((volta #f) (volta "1.--3."))
  {
    a4 a a a |
    c4 c c c |
  }
  \set Score.repeatCommands = #'((volta #f) (volta "1.--2"))
  \set Timing.measureLength = #(ly:make-moment 3 4)
  {
    b4 b b |
  }
  \set Score.repeatCommands = #'((volta #f) end-repeat (volta "3."))
  \set Timing.measureLength = #(ly:make-moment 4 4)
  {
    a4 a a a |
  }
  \set Score.repeatCommands = #'((volta #f))
  \bar "|."
}

Harmonies = \chordmode {
  s4 | c1 |

  s4 | a1:m |

  c |
  f |

  g2. |

  c1 |
}

Lyrics = \lyricmode {
  {
    The | first time on -- ly. |
  }
  {
    All | oth -- er ver -- ses. |
  }
  {
    Each and eve -- ry |
    verse sings this part. |
  }
  {
    First two times. |
  }
  {
    Just the last time. |
  }
}

\score {
  <<
    \new ChordNames { \Harmonies }
    \new Staff  {
      \context Voice = "Vocal" { \Melody }
    }
    \new Lyrics \lyricsto "Vocal" \Lyrics
  >>
}




reply via email to

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