Melody bars are out of sync after tie into first alternative and added lyrics

Arne Ploese via bug-lilypond <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
Hi,

after the tie into the first alternative the bar of second alternative
seems to be out of sync.
In the example it seems that the alternative 2 has only space for 3
quarter  notes, if the alternative 2 does not start with "r4".
This happens only, if I add the lyrics.

Thank You for looking into this issue.

Arne Plöse
FehlerLilypond.ly (text/x-lilypond, 648 B)
\version "2.24.2"

% Melody bar in alternative 2 out of sync after tie into alternative 1.
% "DD" should be the last note in bar 4, not the first in partial bar 5!
% If the alternative 2 starts with "r2" this error shows up as well.
% If the alternative 2 starts with "r4" this error does not show up.

\relative c'' {
  \time 4/4
  \repeat volta 2 {
    g1~ |
    \alternative {
      {
        g4 g2. |
      }
      {
        g4 r2 r4 |
      }
    }
  }
  g4 g4 g4 g4 |
}

\addlyrics {
  \lyricmode {
    \repeat volta 2 {
      A __
    }
    \alternative {
      {
        B |
      }
      {
        C |
      }
    }
    DA DB DC DD |
  }
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.