Creating simultaneous rehearsal marks (obsolete in 2.23): Difference between revisions
Appearance
Import snippet from LSR |
m New category Tags: Mobile edit Mobile web edit |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 7: | Line 7: | ||
Thus unapproving it. --Harm | Thus unapproving it. --Harm | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
% LSR: Thanks to Risto V��r�niemi for this snippet | % LSR: Thanks to Risto V��r�niemi for this snippet | ||
| Line 39: | Line 39: | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Legacy code]] | [[Category:Legacy code]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:34, 21 November 2025
Unlike text scripts, rehearsal marks cannot be stacked at a particular point in a score: only one RehearsalMark object is created. Using an invisible measure and bar line, an extra rehearsal mark can be added, giving the appearance of two marks in the same column.
This method may also prove useful for placing rehearsal marks at both the end of one system and the start of the following system.
This snippet is obsolete starting from LilyPond version 2.23.14, which introduced the \textMark and \textEndMark commands. There can be several text marks at the same moment.
Thus unapproving it. --Harm
\version "2.24"
% LSR: Thanks to Risto V��r�niemi for this snippet
{
\key a \major
\set Score.rehearsalMarkFormatter = #format-mark-box-letters
\once \override Score.RehearsalMark.outside-staff-priority = #5000
\once \override Score.RehearsalMark.self-alignment-X = #LEFT
\once \override Score.RehearsalMark.break-align-symbols = #'(key-signature)
\mark \markup { \bold { Senza denti } }
% the hidden measure and bar line
% \cadenzaOn turns off automatic calculation of bar numbers
\cadenzaOn
\once \override Score.TimeSignature.stencil = ##f
\time 1/16
s16 \bar ""
\cadenzaOff
\time 4/4
\once \override Score.RehearsalMark.self-alignment-X = #LEFT
\mark \markup { \box \bold Intro }
d'1
\mark \default
d'1
}