Am Sa., 9. Aug. 2025 um 17:55 Uhr schrieb Kevin Cole <[email protected]>:
>
> Hi,
>
> I'm running LilyPond 2.24.2.
>
> I've used the same template for over 100 songs and it's always worked
> as expected, but now I'm encountering a problem with a single file
> that I cannot identify.
>
> When I add a final "g2." chord to the score, it shortens the last
> line. Without it, the width is fine.
>
> %%%%%%%%%%%%%%%%%%%%
>
> \version "2.24.2"
> \language "english"
>
> global = {
> \time 4/4
> \key g \major
> \clef treble
> }
>
> chordNames = \chordmode {
> \global
>
> \repeat volta 2 {
> \partial 8 s8 | % 0
> g2 e2:m | a4:m g4 c4 d4 | g2 e2:m | d2:7 g4. % 1 - 4
> }
>
> \partial 8 s8 | % 4
> c4 g2. | a4:m g4 c2 | c4 g2. | a4:m d4:7 g4. % 5 - 8
>
> \partial 8 s8 | % 8
> c4 g4 a4:m g4 | a4:m g4 c4 d4:7 | g2 e2:m | d2:7 g4. % 9 - 12
> }
>
> melody = \relative c'' {
> \global
>
> \repeat volta 2 {
> \partial 8 b8 | % 0
> g16[ d8.] d8.[ e16] g8.[ a16] b16[ g8.] | % 1
> \grace d'8 c8.[ a16] b8.[ g16] e4 e8.[ a16] | % 2
> g16[ d8.] d8.[ e16] g8.[ a16] b8.[ e16] | % 3
> d16[ b8.] a8.[ b16] g4( g8) % 4
> }
> \bar "||"
> \break
>
> \partial 8 g'8 | % 4
> e16[ fs16 g8] d8.[ g16] b,8.[ g'16] d16[ b8.] | % 5
> \grace d8 c8.[ b16] b8.[ g16] e4 e8.[ g'16] | % 6
> e16[ fs16 g8] d8.[ g16] b,8.[ g'16] d16[ b8.] | % 7
> c8.[ a16] d8.[ b16] g4( g8) % 8
> \bar "||"
> \break
>
> \partial 8 g'8 | % 8
> e16[ g8.] d16[ b'8.] c,16[ a'8.] b,16[ g'8.] | % 9
> \grace d8 c8.[ a16] b8.[ g16] e4 e8.[ a16] | % 10
> g16[ d8.] d8.[ e16] g8.[ a16] b16[ e8.] | % 11
Rhythm is wrong here
> d16[ b8] a8.[ b16] d4( d8) % 12
Should read (note the added dot):
d16[ b8.] a8.[ b16] d4( d8) % 12
Cheers,
Harm
> \bar "|."
> }
>
> \score {
> <<
> \new ChordNames \chordNames
> \new Voice = "mel" \melody
> >>
> \layout {
> \autoBeamOff
> indent = 0\mm
> ragged-last = ##f
> }
> }
>
> %%%%%%%%%%%%%%%%%%%%
>