On Fri 02 Oct 2020 at 21:02:37 (+0200), Lukas-Fabian Moser wrote:

> > but there must be an easy way to simply incorporate that
> > command within the lilypond file.
> I do not have enough time right now to try and understand what you
> mean by that, sorry.

ditto.

> Hence, the easiest solution would be to assign the lyrics to the
> soprano voice. If you're not fine with that, one might resort to
> tricks involving invisible noteheads etc. But for the moment, I went
> with assigning the lyrics to the soprano line.

Alternatively, you can use   \set associatedVoice   to switch voices, or
yet again, a NullVoice, which is somewhat similar to the suggestion below.
These have the advantage of not affecting any MIDI you might require.

> I also cleaned up your file a little for you. Do try and compare your
> and my version thoroughly, chances are that you can understand much
> about Lilypond when doing so.
> 
> Yours is a bit of a hodgepodge of templates in various code styles for
> very old Lilypond versions. Today, we can do things a little bit
> easier.

If you have no reason to stick with 2.18.2, you can \addlyrics to
the staff, ie both voices. I've commandeered the revised version
to illustrate. The words needed some syllables added, as there has
to be a one for each and every moment (a note in either part).
Otherwise, just the upper part of the ChoirStaff needed modification.

Thanks, Lukas-Fabian, for the work you put in.

Cheers,
David.
\paper {
  top-margin = 12
  left-margin = 18
  right-margin = \left-margin
  markup-system-spacing.basic-distance = 10
  system-system-spacing.basic-distance = 15
  last-bottom-spacing.basic-distance = 10
}

\layout {
  \omit Staff.TimeSignature
  \set Timing.timing = ##f
  % The following two commands add an (invisible) bar line after every note,
  % so Lilypond may add line breaks where they fit best.
  \set Timing.defaultBarType = ""
  \set Timing.barAlways = ##t
}

\header {
  title = "Kievan Resurrection Lord I Call Tone 1"
  opus = "Arr. by B. Ledkovsky - Adapted by L. Westerberg"
  piece = \markup \huge\bold {"(4)"}
}


global = {
  \key g \major
}

#(set-global-staff-size 23)

words = \lyricmode {
  Be glad __ O __ hea -- _ vens!
  Sound trum -- pets O foun -- da -- tions of the earth!
  Sing in glad -- ness, O moun -- tains.
  Be -- hold Em -- man -- u -- el has nailed our sins to the Cross.
  Grant -- ing life, __ he has slain _ death.
  \once \override LyricText.self-alignment-X = #LEFT
  \markup{He has resurrected} Adam as the lov __ _ _ _ er of man.
}

sopMusic = \relative c'' {
  a4 a2( b2) a4(fis4) g4( fis4) e2 \bar "|"
  fis4 g4 g4 g4 fis4 g2 g4 a4 a4 fis2 \bar "|"
  a2 a4 a4 a4 a4 g2 fis2 \bar "|"
  g4 g4 g4 g4 g4 g4 g4 fis2 g2 a2 g4 g4 fis2 \bar "|"
  a4 a4  a2(b2) a4 fis4 g4(fis4) e2 \bar "|"
  a4 a4 g4 fis4 g4(a2 g4 fis2) e4 d4 e1
  \bar "|."
}

altoMusic = \relative c' {
  fis4 fis2(g2) fis4(d4) d2 b2
  d4 d4 d4 d4 d4 d2 d4 d4 d4 d2
  fis2 fis4 fis4 fis4 fis4 d2 d2
  d4 d4 d4 d4 d4 d4 d4 d2 d2 d2 d4 d4 d2
  fis4 fis4 fis2(g2) fis4 d4 d2 b2
  fis'4 fis4
  g4 d4 d1. d4 a4 cis1
}

tenorMusic = \relative c' {
  d4 d1 c4(a4) b4(a4) g2
  a4 b4 b4 b4 a4 b2 b4 c4 c4 a2
  c2 c4 c4 c4 c4 b2 a2
  b4 b4 b4 b4 b4 b4 b4 a2 b2 c2 b4 b4 a2
  d4 d4 d1 c4 a4 b4(a4) g2
  c4 c4
  b4 a4 b4( c2 b4 a2) g4 fis4 a1
}

bassMusic = \relative c {
  d4 d2(g2) d2 g4(d4) e2
  d4 g4 g4 g4 d4 g2 g4 d4 d4 d2
  d2 d4 d4 d4 d4 g2 d2
  g4 g4 g4 g4 g4 g4 g4 d2 g2 fis2 g4 g4 d2
  d4 d4 d2( g2) d4 d4 g4(d4) e2
  d4 d4
  d4 d4 g4( fis2 g4 d2) d4 d4 a1
}

\score {
  \new ChoirStaff <<
    \new Staff <<
      \new Voice { \voiceOne << \global \sopMusic >> }
      \new Voice { \voiceTwo << \global \altoMusic >> }
    >>
    \addlyrics \with {
      \override VerticalAxisGroup.staff-affinity = #CENTER
    } \words
    \new Staff \with { \clef bass } <<
      << \global \tenorMusic >>
      \\
      << \global \bassMusic >>
    >>
  >>
  \layout { }
  \midi { \tempo 4=120 }
}

Attachment: fabian-1-4.pdf
Description: Adobe PDF document

Attachment: fabian-1-4.midi
Description: MIDI audio

Reply via email to