[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2.23.81 changing dalSegnoTextFormatter
From: |
Jean Abou Samra |
Subject: |
Re: 2.23.81 changing dalSegnoTextFormatter |
Date: |
Wed, 16 Nov 2022 20:45:08 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 |
Le 16/11/2022 à 19:01, Paul Scott a écrit :
I still would appreciate help adding the coda.
I will attach my last attempt again,
You need to put \once \set ... just at the point where the
"D.C." text appears. In your example, this means:
\version "2.23.81"
music = {
\repeat segno 2 {
c'1 1 1 1
\alternative{
\volta 1 { c'1 }
\volta 2 \volta #'() {
\section
\sectionLabel "Coda"
}
}
c'1
\once \set Score.dalSegnoTextFormatter =
#(lambda (context repeat-count markups)
#{ \markup \column { "D.S." "Al Coda" "with Repeats" } #})
}
d'1
}
\score{ \new Staff \new Voice \music }
You may want to replace \column with \right-column.
Best,
Jean
OpenPGP_signature
Description: OpenPGP digital signature