Jump to content

Talk:Volta text markup using repeatCommands

From LilyPond wiki
Revision as of 12:42, 16 January 2026 by Manuela (talk | contribs) (full Lilypond version added)

Latest comment: 16 January by Manuela in topic Isn't this an easier alternative?

Isn't this an easier alternative?

In version 2.25 following code is working. Put the following command before the

\override Score.VoltaBracket.text = \markup \volta-number "1.2."

\version "2.25.31"

mus = \relative c'' { c4 c c c }

Struktur = {
  \repeat volta 2
  s1
  \alternative
  {
    {
      \override Score.VoltaBracket.text = \markup \volta-number "1.2."
      s1
    }
    {
      \override Score.VoltaBracket.text = \markup \volta-number "3."
      \once \override Score.VoltaBracket.edge-height = #'(2 . 0)
      s1
    }
  }
}

\new PianoStaff
<<
  \new Staff
  <<
    { \repeat unfold 4 \mus }
    \new NullVoice \Struktur
  >>
  \new Staff \repeat unfold 4 \mus
>>

Manuela (talk) 12:41, 16 January 2026 (UTC)Reply