Pierre-Luc, try running your code with default layout options. I've written
and ran (with 2.24.4 and 2.25.25) the two first systems of your score and
it seems ok.
[image: image.png]
%%Code starts
\version "2.25.25"
melody = {\new Staff { \new Voice \with {\consists "Ambitus_engraver"} {
\clef bass
\sectionLabel \markup \left-column { \magnify #1 "0:00" \vspace #0.2 \bold
"Intro" }
\textMark \markup \bold "rubato"
\compressMMRests R1*2
\sectionLabel \markup \left-column { \magnify #1 "0:07" \vspace #0.2 \bold
"1 COUPLET" }
\tempo "a tempo" 4 = 64
c4 c8 c16 d e8 b, e,4
a,4 r8 a,8 g,4 c
f,4 r8 f,8 e,4 e \break
d4 r8 a, g,4 g
\sectionLabel \markup \left-column { \magnify #1 "0:22" \vspace #0.2 \bold
"2 COUPLET" }
c4 c8 c16 d e8 b, e,4
a,4 r8 a,8 g,4 c
f,4 r8 f,8 e,4 e \break
}}}
harmony = {\new ChordNames {\chordmode{
\compressMMRests R1*2
c2 e:7
a:m c4/g c:7
f2:7+ c/e
d2:7 f4:7+ g:7
c2 e:7
a:m c4/g c:7
f2:7+ c4/e a:m7
}}}
\score {<< \harmony \melody >>}
%%Code ends
Em dom., 30 de nov. de 2025 às 17:29, Carl Sorensen <
[email protected]> escreveu:
>
>
> On Sun, Nov 30, 2025, 10:53 AM Pierre-Luc Gauthier <
> [email protected]> wrote:
>
>> Hi there,
>>
>> I still get unexpected chords crammed inside the staff. I'm so unsure
>> why, and so randomly. While writing the part, I often have the feeling
>> that everything is ok and then, for some reason, LilyPond gets thrown
>> off by something and, from then on, it totally disregards the chord's
>> vertical alignment.
>>
>
> I suspect that something in your layout is forcing the spacing engine to
> fail.
>
> Do you have the log messages from this run? That may give us a clue.
>
> Carl
>
>
>>