3

Using LilyPond, I would like to indicate alternate endings to the piece I am engraving; an "Optional 'Screen Gems' Ending" which is 2 measures long or another "Low Fat" ending (not my terms; they are in the original score) which is 1 measure. I would like notation similar to 1st and 2nd endings but without the repeat, of course.
How do I do this?

1 Answer 1

6

See here for the LilyPond documentation on long repeats.

\version "2.24.0"

voltaFirst = \markup \text "Gems"
voltaSecond = \markup \text "Fat"

\relative {
  e'4 e e e
  \set Score.repeatCommands = #(list(list 'volta voltaFirst))
  g2 g g g \bar "||"
  \set Score.repeatCommands = #(list(list 'volta voltaSecond))
  d1
  \set Score.repeatCommands = #'((volta #f))
  \bar "|."
}

Text other than numbers in repeats

You can add usual markup arguments after \text to change how it's displayed.

3
  • This seems kind of ridiculously complicated to me. :-/ Commented Aug 30, 2019 at 16:50
  • It's not much more complicated than what's written in their documentation.
    – Neal
    Commented Aug 31, 2019 at 18:49
  • Not criticising you, just commenting on the code. Sorry for the miscommunication. Commented Sep 1, 2019 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.