Jump to content

Printing marks at the end of a line (obsolete in 2.23)

From LilyPond wiki

Marks can be printed at the end of the current line, instead of the beginning of the following line. In such cases, it might be preferable to align the right end of the mark with the bar line.

This snippet is obsolete starting from LilyPond version 2.23.14 with the addition of the \textMark and \textEndMark commands. To obtain a right-aligned text mark at the end of a line, use \textEndMark.

Thus unapproving it --Harm

\version "2.24"

\paper { tagline = ##f }

\relative c'' {
  \repeat volta 2 {
    g2 c
    d,2 a'
    \once \override Score.RehearsalMark.break-visibility =
      #end-of-line-visible
    \once \override Score.RehearsalMark.self-alignment-X =
      #RIGHT
    \mark "ad lib"
    % In LilyPond 2.23.14 and later, just use this instead of
    % the overrides above:
    % \textEndMark "ad lib"
  }
  \break
  g2 b,
  c1 \bar "||"
}