Jump to content

Printing marks at the end of a line or a score

From LilyPond wiki
(Redirected from LSR 432)

Marks can be printed at the end of the current line, instead of the beginning of the following line. This is particularly useful when a mark has to be added at the end of a score – when there is no next line.

In such cases, the right end of the mark has to be aligned with the final bar line, as demonstrated on the second line of this example.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=432
%% see also http://lsr.di.unimi.it/LSR/Item?id=636

%here starts the snippet:

\relative c'' {  
  \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
  g2 c
  d,2 a'
  \mark \default
  \break
  g2 b,
  c1 \bar "||"
  \override Score.RehearsalMark.self-alignment-X = #RIGHT  
  \mark "D.C. al Fine"
}

\paper { tagline = ##f }