@Jean, sorry, of course i forgot the change I wanted to show by swapping
the section label and the repeat segno lines in the 2nd example. I fixed
it in this code (snippets A and B).
In example C I changed section labels to rehearsal marks according to
your advice. It seems that I still have a flawed understanding of the
newly introduced section labels (I love semantics in any kind of
code...). Let me check the docs.
@Laurie, the segno repeat is new in 2.25.x
Regards, Stephan
\version "2.25.4"
% A
\relative {
\sectionLabel "A"
c'1
\sectionLabel "B"
\repeat segno 2 {
f \fine
\sectionLabel "C"
g a \section
}
}
% B
\relative {
\sectionLabel "A"
c'1
\repeat segno 2 {
\sectionLabel "B"
f \fine
\sectionLabel "C"
g a \section
}
}
% C
\relative {
\mark "A"
c'1
\repeat segno 2 {
\mark "B"
f \fine
\mark "C"
g a \section
}
}
Am 25.04.2023 um 23:48 schrieb Jean Abou Samra:
Le mardi 25 avril 2023 à 23:15 +0200, Stephan Schöll a écrit :
Hi all
Happily using the segno repeat feature newly introduced I stumbled
upon this:
--- A \version "2.25.4"
\relative { \sectionLabel "A" c'1
\sectionLabel "B" \repeat segno 2 { f \fine
\sectionLabel "C" g a \section } }
versus --- B
\version "2.25.4"
\relative { \sectionLabel "A" c'1
\sectionLabel "B" \repeat segno 2 { f \fine
\sectionLabel "C" g a \section } }
In A) section label "B" is printed, but no segno at the same
position, and in the "D.S. % al fine' the segno is omitted as well,
warning: discarding event: `segno-mark-event'
\repeat segno 2 {
whereas in B) the segno is printed at bar 2 as well as in the "D.S. %
al fine" markup, but the section label "B" is omitted
warning: discarding event: `section-label-event'
\sectionLabel "B"
Why do they override eachother? I'd like to keep both - the section
label letter for the orientation in a piece containing quite a couple
of sections (all with letters), and the segno to indicate the repeat.
Your examples A and B are identical. I assume this is a copy-paste
accident.
To understand why |\sectionLabel| and a segno sign conflict, you can
observe this example:
|\version "2.25.4" { c'1 \repeat segno 2 { c'1 c'1 \alternative {
\volta 1 { c'1 c'1 } } } \sectionLabel "Coda" c'1 } { c'1 \repeat
segno 2 { c'1 c'1 \alternative { \volta 1 { c'1 c'1 } } } \repeat
segno 2 { c'1 c'1 } } |
However, your section labels don't sound like section labels. Rather,
they are rehearsal marks. If you replace them with actual rehearsal
marks, it works fine:
|\version "2.25.4" \relative { \mark \default c'1 \mark \default
\repeat segno 2 { f \fine \mark \default g a \section } } |
Best,
Jean