This should do the trick:

\version "2.24.2"

{
  \repeat segno 2 {
    c'1
    \alternative {
      \volta 1 {
        \once \set Score.codaMarkFormatter =
          #(lambda args
             #{ \markup "foo bar" #})
        c'1
      }
      \volta 2 \volta #'() { \section \sectionLabel Coda }
    }
  }
  c'1
}

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to