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

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

Reply via email to