lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \sectionLabel and \repeat segno


From: Joel C. Salomon
Subject: Re: \sectionLabel and \repeat segno
Date: Sun, 27 Feb 2022 00:03:05 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

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

Attachment: SectionLabelKluge.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]