Hello all,

I’ve noticed that a SectionLabel of a certain length has an impact on the
vertical placement of a ChordNames line, especially notable if the
SectionLabel is placed above a RehearsalMark (which is the setup I’m
working with for my current project).
I assume this has to do with some sort of horizontal collision avoidance,
but not knowing how these things work on the inside, it seems strange to me
since there wouldn’t be any visible collision in the first place if the
chord names wouldn’t be shifted upwards with the longer section labels. See
the following example (attached images are from this and from my real-world
score):


\version "2.25.24"

music = {
  \mark \default
  \time 4/4
  c''1 \break
}

<<
  \chords {
    \repeat unfold 3 { c1 }
  }

  {
    \sectionLabel "iiiiiiiii"
    \music

    \sectionLabel "iiiiiiiiii"
    \music

    \sectionLabel "iiiiiiiiiii"
    \music
  }
>>

\layout {
  \context { \Score
    \override Clef.break-align-anchor-alignment = 0
    \override SectionLabel.outside-staff-priority = 1550
  }
}

\paper { indent = 0 }


Can anybody clue me in on which screws I have to turn in order to get the
desired result: where the chord names are only shifted if the notes below
them require it. If there would be a collision between section label and
chord name, then the section label should go above it. I haven’t found a
solution yet.
(I know that I could just extra-offset the ChordNames for each line in
question, but if there is a way where I’d just have to override a couple
properties once, I’d much prefer that.)

Thanks,
Peter

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
https://www.petercrighton.de

Reply via email to