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


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))
  \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.

  • This seems kind of ridiculously complicated to me. :-/ Aug 30, 2019 at 16:50
  • It's not much more complicated than what's written in their documentation.
    – Neal
    Aug 31, 2019 at 18:49
  • Not criticising you, just commenting on the code. Sorry for the miscommunication. 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.