Thank you!, Xavier,

I finally had time to look at your revised MWE and integrate it into my actual code.

I'm beginning to see in the documentation where I might be able to do more with this. One code feature I will need to figure out is lambda which is not something I have learned in all my years of programming.

Take care,

Paul


On 11/7/24 2:22 PM, Xavier Scheuer wrote:
On Thu, 7 Nov 2024 at 21:46, Paul Scott <waterhorsemu...@aol.com> wrote:
>
> Thank you for your reply, Xavier,
>
> I don't know enough to know how to override Score.coda.MarkFormatter. I
> might be able to figure part of it from the code I was given to change
> the D.C al Coda string. I don't know where to put the override I want.

Hello,

I am not an expert either.
Playing with your MWE I ended up with the following code, not perfect but might lead you or someone into the right direction.

\version "2.25.19"

music = \fixed c' {
   f1
   \repeat segno 2 {
     g1
     \alternative {
       \volta 1 {
         \once \override Score.CodaMark.self-alignment-X = #0.8
         \once \set Score.codaMarkFormatter =
         #(lambda args
             #{ \markup { \normalsize { "To Coda" \raise #1 \musicglyph "scripts.coda" } } #})
         \repeat unfold 4 { a2 } }
       \volta 2 \volta #'() {
         \section
         \sectionLabel "Coda"
         \once \set Score.dalSegnoTextFormatter =
         #(lambda (context repeat-count markups)
           #{ \markup{D.C. al Coda} #})
       }
     }
   }
   b1
   \fine
}

\score { \music }

Kind regards,
Xavier


Reply via email to