On Sun, Dec 21, 2025 at 9:56 AM Sam Carmalt <[email protected]> wrote:

> 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?
>

Here is your input file with my changes in the comments:

%%% Start
\version "2.24.4"
\language "english"

\paper {
  #(set-default-paper-size "a4" "portrait")
}

\header {
  title = "Bar line problem with lyrics (fixed?)"
}

global = {
  \key a \major
  % remove \cadenzaOn
}

% 1) replace bar lines with barline indicators (|)
% 2) add \partial to the firsr measue (it seems like pickup notes)
%    last bar had only three eights, but this doesn't matter
rcSixmusicS = \relative c'' {
  \time 6/8 \partial 4. a8 b d | e4 d8 e4 d8 | fs4 d8 fs4 d8 | r8 fs8 f fs
d fs | <e a>4. \bar "||"
}

% 1) remove bar lines
% 2) add true hyphenation ( -- ) to words
rcSixwords = \lyricmode {
  And make Thy cho -- sen peo -- ple joy -- ful, joy -- ful joy -- ful, joy
-- ful, joy -- ful
}

\score {
  \new Staff = "SA" <<
    \global
    \clef "treble"
    \new Voice = "rcSoprano" <<
      \voiceOne
      \rcSixmusicS
    >>
    \new Lyrics \lyricsto "rcSoprano" {
      \rcSixwords
    }
  >>
  \layout {
    \context {
      \Staff
      \remove "Time_signature_engraver"
    }
  }
}
%%% End



--
Knute Snortum

Reply via email to