Hello,

I believe to have encountered a bug in LilyPond. When one adds
additional lyrics multiple times on the same line of the resulting sheet
music using alignBelowContext, the alignment of the first instance is
shifted down. (It is shifted below the second instance.) If this is
attempted more than twice on a line, these extra shifts stack up.
When the two instances are not on the same line in the resulting sheet
music, this problem does not occur. (This can be observed by removing
the 'landscape option in the attached file.)

The example I attached is basically taken from the official
documentation [1], with the last two bars repeated.

Best regards

Benedikt Wilde


[1]:
http://lilypond.org/doc/v2.19/Documentation/notation/techniques-specific-to-lyrics#lyrics-and-repeats
% basically taken from http://lilypond.org/doc/v2.19/Documentation/notation/techniques-specific-to-lyrics#lyrics-and-repeats

\paper {
  #(set-paper-size "a4" 'landscape)
}

\score {
  <<
    \new Staff {
      \new Voice = "melody" {
        \relative {
          a'4 a a a
					\repeat volta 3 { b4 b b b }
					c4 c c c
					\repeat volta 3 { b4 b b b }
					c4 c c c
				}
      }
    }
    \new Lyrics = "firstVerse" \lyricsto "melody" {
      Not re -- peat -- ed.
      <<
        { The first time words.	}
				\new Lyrics = "secondVerse" \with { alignBelowContext = "firstVerse" } {
					\set associatedVoice = "melody"
					Sec -- ond time words.
				}
				\new Lyrics = "thirdVerse" \with { alignBelowContext = "secondVerse" } {
					\set associatedVoice = "melody"
					The third time words.
				}
      >>
      The end sec -- tion.
      <<
        { The first time words.	}
				\new Lyrics = "secondVerse" \with { alignBelowContext = "firstVerse" } {
					\set associatedVoice = "melody"
					Sec -- ond time words.
				}
				\new Lyrics = "thirdVerse" \with { alignBelowContext = "secondVerse" } {
					\set associatedVoice = "melody"
					The third time words.
				}
      >>
      The end sec -- tion.
    }
    \new Voice = "harmony" {
      \relative {
        f'4 f f f
				\repeat volta 2 { g8 g g4 g2 }
				a4 a8. a16 a2
				\repeat volta 2 { g8 g g4 g2 }
				a4 a8. a16 a2
      }
    }
  >>
}

Attachment: alignment_bug.pdf
Description: Adobe PDF document

# -*-compilation-*-
Processing `C:/Users/Benedikt Wilde/Desktop/alignment_bug.ly'
Parsing...
C:/Users/Benedikt Wilde/Desktop/alignment_bug.ly:1: warning: no \version 
statement found, please add

\version "2.18.2"

for future compatibility
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/Users/Benedikt Wilde/Desktop/alignment_bug.ps'...
Converting to `/Users/Benedikt Wilde/Desktop/alignment_bug.pdf'...
Success: compilation successfully completed
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to