Segno or coda on top of rehearsal mark: Difference between revisions
Appearance
Import snippet from LSR |
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
||
| Line 5: | Line 5: | ||
Thus this lsr snippet is heavily shortened compared with previous versions. | Thus this lsr snippet is heavily shortened compared with previous versions. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=202 | %% http://lsr.di.unimi.it/LSR/Item?id=202 | ||
Revision as of 18:53, 16 November 2025
In LilyPond 2.24.0 the \textMark command and the normal \mark command happily coexist.
Furthermore the sophisticated \repeat segno command is available, see here.
Thus this lsr snippet is heavily shortened compared with previous versions.
\version "2.24"
%% http://lsr.di.unimi.it/LSR/Item?id=202
%% some variables
%% -----------------
markDefault = \mark \default
markDefaultSegno = {
\textMark \markup \musicglyph "scripts.segno"
\mark \default
}
markDefaultCoda = {
\textMark \markup \musicglyph "scripts.coda"
\mark \default
}
\score {
\relative c' {
c4 d e f
\markDefault
g a b c
\markDefaultSegno
c b a g
\markDefault
f e d c
\markDefaultCoda
c d e f
\markDefault
\bar "|."
}
\layout {
indent = 0\cm
\context {
\Score
rehearsalMarkFormatter = #format-mark-box-letters
\override TextMark.self-alignment-X = #CENTER
\override TextMark.outside-staff-priority = 1600
}
}
}