[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Rehearsal marks

To print a rehearsal mark, use the \mark command.

     \relative c'' {
       c1 \mark "A"
       c1 \mark \default
       c1 \mark \default
       c1 \mark "12"
       c1 \mark \default
       c1
     }
     
[picture of music]

As you can see, 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 object is RehearsalMark in Score context. See input/test/boxed-molecule.ly if you need boxes around the marks.

The \mark command can also be used to put signs like coda, segno and fermatas on a barline. The trick is to use the text markup mechanism to access the fermata symbol.

       c1 \mark \markup { \musicglyph #"scripts-ufermata" }
       c1
     
[picture of music]

The problem is that marks that occur at a line break are typeset only at the beginning of the next line, opposite to what you want for the fermata. This can be corrected by the following property setting

     \property Score.RehearsalMark \override
       #'break-visibility = #begin-of-line-invisible
     
Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.