To print a rehearsal mark, use the \mark command:
\relative c'' {
c1 \mark "A"
c1 \mark "B"
c1 \mark "12"
c1 \mark "13"
c1
}
The mark is incremented automatically if you use \mark
\default. The value to use is stored in the property
rehearsalMark is used and automatically incremented.
The \mark command can also be used to put signs like coda,
segno and fermatas on a barline. Use \markup to
to access the appropriate symbol:
c1 \mark \markup { \musicglyph #"scripts-ufermata" }
c1
In this case, during line breaks, marks must also be printed at the end of the line, and not at the beginning. Use the following to force that behavior:
\property Score.RehearsalMark \override
#'break-visibility = #begin-of-line-invisible
See input/test/boxed-molecule.ly for putting boxes around the marks.
MarkEvent (lilypond-internals), RehearsalMark (lilypond-internals), and input/test/boxed-molecule.ly.
|
This page is for LilyPond-2.0.3 (stable-branch). Report errors to <bug-lilypond@gnu.org>. |