Jump to content

Aligning text marks to notes

From LilyPond wiki
Revision as of 21:16, 23 December 2025 by Schrodinger-s-kitten (talk | contribs) (Created page with "By default, <code>TextMark</code> objects are aligned to the left edge of the staff. They can be aligned to the first note of the line instead by setting the <code>non-musical</code> property to false. <lilypond version="2.24"> \paper { indent = #0 ragged-right = ##t } { \textMark "mark a" c'1 | \break \override Score.TextMark.non-musical = ##f \textMark "mark b" c' | } </lilypond>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

By default, TextMark objects are aligned to the left edge of the staff. They can be aligned to the first note of the line instead by setting the non-musical property to false.

\version "2.24"

\paper {
  indent = #0
  ragged-right = ##t
}

{
  \textMark "mark a"
  c'1 |
  \break
  \override Score.TextMark.non-musical = ##f
  \textMark "mark b"
  c' |
}