Jump to content

Segno or coda on top of rehearsal mark: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In LilyPond 2.24.0 the <code>\textMark</code> command and the normal <code>\mark</code> command happily coexist.
Starting with LilyPond 2.24 the <code>\textMark</code> command and the normal <code>\mark</code> command happily coexist. Furthermore, the sophisticated [{{LILYSTABLEDOC}}/notation/long-repeats#segno-repeat-structure <code>\repeat segno</code> command] is available. (Be sure to look at the English version, since translations of the Notation Reference might not be up to date.)  Consequently, this snippet is much shorter in comparison to previous versions in the LSR.
 
Furthermore the sophisticated <code>\repeat segno</code> command is available, see [https://lilypond.org/doc/v2.23/Documentation/notation/long-repeats here].
 
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
%% some variables
%% -----------------
markDefault = \mark \default
markDefault = \mark \default


Line 53: Line 43:
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Repeats]]
[[Category:Repeats]]
[[Category:Scheme]]
[[Category:Snippet]]
[[Category:Preparing parts]][[Category:Snippet]]

Latest revision as of 06:08, 12 January 2026

Starting with LilyPond 2.24 the \textMark command and the normal \mark command happily coexist. Furthermore, the sophisticated \repeat segno command is available. (Be sure to look at the English version, since translations of the Notation Reference might not be up to date.) Consequently, this snippet is much shorter in comparison to previous versions in the LSR.

\version "2.24"

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
    }
  }
}