3.1.5 Adding text

Text may be added to your scores:

\relative { c''2^"espr" a_"legato" }

[image of music]

Extra formatting may be added with the \markup command:1

\relative {
  c''2^\markup { \bold espr }
  a2_\markup {
    \dynamic f \italic \small { 2nd } \hspace #0.1 \dynamic p }
}

[image of music]

参见

Notation Reference: Writing text.


Footnotes

(1)

Users of right-to-left scripts like Hebrew or Arabic should replace \markup { ... } with \markup \override #'(text-direction . LEFT) \line { ... }. Within double quotes, however, this is not necessary since LilyPond can automatically recognize the writing direction.

LilyPond 学习手册 v2.25.22 (development-branch).