On 2/25/22 14:18, I wrote:
… interact oddly.  Which is reasonable, since the segno mark is the same sort of creature as section labels.  But what’s a good work-around?

`\after` works but it’s a kluge, and there’s a funny interaction with grace notes that puts the section label more to the right than I was initially expecting. Given the time-travel involved with grace notes this behavior makes sense, and since this is identifying a section the oddity is not (to me, anyway) worth “fixing”.

\version "2.23.6"

musicA = { b'1 }

musicB = {
  \after 16 \sectionLabel "klugy label"
  \repeat segno 2 {
    d''1
    \volta 2 \fine
    e''
  }
}

musicC = {
  \after 16 \sectionLabel "shifted label"
  \repeat segno 2 {
    \acciaccatura c''8 d''1
    \volta 2 \fine
    e''
  }
}

\score {
  { \musicA \musicB }
}
\score {
  { \musicA \musicC }
}

(In my actual code, it’s the segno mark that wins; not sure why it’s the section label in this minimal example.)

That turns out to be simple: moving the `\sectionLabel "brokenlabel"` within the `\repeat segno` block gave the segno priority, and that’s how my code was actually written.

—Joel

Reply via email to