Hi -

Attached is some code.  Everything runs without any errors,  But when the
words are added, Lilypond inserts an extra bar line.

How can I get rid of this?

Many thanks for your help.

Regards,
Sam Carmalt

\version "2.24.4"
\language "english"
\paper {       #(set-default-paper-size "a4" "portrait")    }
\header {     title = "Bar line problem with lyrics"     }
global = {
      \key a \major
     \cadenzaOn
}
stemOff = { \hide Staff.Stem }

rcSixmusicS = \relative c'' {\time 6/8 a8[ b d] \bar "|" e4 d8 e4 d8 \bar
"|" fs4 d8 fs4 d8 \bar "|" r8 fs8[ f] fs[ d fs] \bar "|" <e a>4. \bar "||" }
rcSixwords = \lyricmode { And make Thy cho- sen peo- ple \bar "|" joy- ful,
joy- ful \bar "|" joy- ful, joy- ful, joy- \bar "|" ful \bar "||" }

%  Music only score.  Bar lines are correct
\score {
         \new Staff = "SA" <<
              \global
              \clef "treble"
              \new Voice = "rcSoprano" <<
                   \voiceOne
                   \rcSixmusicS
              >>
         >>
    \layout {
         \context {
              \Staff
              \remove "Time_signature_engraver"
         }
    }
}

%  Same music with lyrics added.   Extra bar line appears.
%  I've tried adding __ in the lyrics at the start of the final bar, but
that has no effect
\score {
         \new Staff = "SA" <<
              \global
              \clef "treble"
              \new Voice = "rcSoprano" <<
                   \voiceOne
                   \rcSixmusicS
              >>
              \new Lyrics \lyricsto "rcSoprano" {
                   \rcSixwords }
         >>
    \layout {
         \context {
              \Staff
              \remove "Time_signature_engraver"
         }
    }
}

-- 
Sam Carmalt
Tel: +41 79 232 25 53

Reply via email to