% Version 1.1
% Last edit: March 25, 2006
% The music and words produced by this source code are believed
% to be in the public domain in the United States. The source
% code itself is covered by the Creative Commons Attribution-
% NonCommercial license, 
% http://creativecommons.org/licenses/by-nc/2.5/
% Attribution: Geoff Horton

\version "2.8.0"
\include "english.ly"

#(set-default-paper-size "letter")
#(set-global-staff-size 20)

title = "It is well with my soul"
composer = "Philip P. Bliss"
poet = "Horatio G. Spafford"
piece = "Villa Du Havre"
meter = "11.8.11.9, with Refrain"
arranger = ""

bumpOne = \once \override Rest #'extra-offset = #'(0 . 1.0)
bumpTwo = \once \override Rest #'extra-offset = #'(0 . 2.0)

world = {
  \key df \major
  \time 4/4
  \partial 4*1
}

melody = \relative c'' {
  \world
  af4 |
  af2 gf4 f |
  f2 ef4 f |
  gf( bf) af gf |
  f2. af4 | 
  df2 c4 bf |
  bf2 af4 g |
  af2. af4 |
  df2 df4 c |
  bf2 bf4 bf |
  ef2 ef4 df |
  c2 bf4 af |
  df2 df4 df4 |
  df2 c4. df8 |
  df2\fermata
  af4 \mark \markup { \small Refrain } af4 |
  af1 ~ |
  af2 af4 af4 |
  af1 ~ |
  af2 f4 af |
  bf2 bf4 df4 |
  df2 c4. df8 |
  df2. \bar "|."
}


alto = \relative c' {
  \world
  f4 |
  f2 ef4 df |
  df2 c4 df |
  c2 c4 ef |
  df2. f4 |
  f2 ef4 df |
  f2 ef4 ef |
  ef2. gf4 |
  f2 f4 af |
  gf2 bf4 af |
  gf2 gf4 g |
  af2 af4 af |
  af2 df,4 ef |
  f2 ef4. f8 |
  f2 \bumpOne r2 |
  \bumpOne r2 f4 f |
  ef2 \bumpOne r2 |
  \bumpOne r2 ef4 gf |
  f2 df4 f |
  gf2 gf4 gf | 
  f2 ef4. f8 |
  f2.
}

tenor = \relative c' {
  \world
  af4 |
  af2 af4 af |
  af2 af4 af |
  af2 af4 af |
  af2. af4 | 
  bf2 a4 bf |
  df2 c4 bf |
  c2. c4 |
  df2 df4 df |
  df2 df4 d |
  ef2 ef4 ef |
  ef2 df4 c |
  df2 af4 bf |
  af2 af4. af8 |
  af2 s2 |
  s2 af4 df |
  c2 s2 |
  s2 c4 ef |
  df2 af4 df |
  df2 df4 bf |
  af2 af4. af8 |
  af2.
}

bass = \relative c {
  \world
  df4 |
  df2 df4 df8 f |
  af2 gf4 f |
  ef2 af,4 af |
  df2. df4 |
  bf2 c4 df |
  df2 ef4 ef |
  af,2. af'4 |
  df,2 df4 f |
  gf2 gf4 f |
  ef2 ef4 ef |
  af2 af4 af8 gf |
  f2 f4 gf |
  af2 af,4. af8 |
  df2 \bumpTwo r2 |
  \bumpTwo r2 df4 f |
  af2 \bumpTwo r2 |
  \bumpTwo r2 af,4 af |
  df2 df4 df |
  gf2 gf4 gf |
  af2 af,4. af8 |
  df2.
}

verseOne = \lyricmode {
  \set stanza = "1. "
  When peace, like a riv -- er, at -- tend -- eth my way,
  When sor -- rows like sea -- bil -- lows roll;
  What -- ev -- er my lot, Thou hast taught me to say,
  “It is well, it is well with my soul.”
  It is well with my soul
  It is well, it is well with my soul.
}

verseTwo = \lyricmode {
  \set stanza = "2. "
  Though Sa -- tan should buf -- fet, tho' tri -- als should come,
  Let this blest as -- sur -- ance control,
  That Christ has re -- gard -- ed my help -- less es -- tate,
  And hath shed His own blood for my soul.
}

verseThree = \lyricmode {
  \set stanza = "3. "
  My sin-- oh, the bliss of this glo -- ri -- ous thought,
  My sin-- not in part, but the whole,
  Is nailed to the cross and I bear it no more,
  Praise the Lord, praise the Lord, O my soul!
}

% **** This verse is not missing the last word! It's tack onto the
% **** refrain. It's a lilypond curiosity that it has to work this way.
verseFour = \lyricmode {
  \set stanza = "4. "
  And, Lord, haste the day when the faith shall be sight,
  The clouds be rolled back as a scroll,
  The trump shall re -- sound and the Lord shall de -- scend,
  “Ev -- en so”-- it is well with my
}

refrainwords = \lyricmode {
  soul. 
  It is well
  with my soul
}

\markup {
  \column {
    \fill-line { \large \bold \title } % title
    \fill-line { \caps \piece               % piece
	         \caps \composer      % composer
	  }
    \fill-line { \meter          % meter
	         \arranger           % arranger
	  }
  }
}

\score {
  \context ChoirStaff <<
    \context Staff = upper <<
      \context Voice =
         sopranos { \voiceOne << \melody >> }
      \context Voice =
         altos { \voiceTwo << \alto >> }
      \context Lyrics = one \lyricsto sopranos \verseOne
      \context Lyrics = two \lyricsto sopranos \verseTwo
      \context Lyrics = three \lyricsto sopranos \verseThree
      \context Lyrics = four \lyricsto sopranos { 
         \verseFour
         \set associatedVoice = altos
         \refrainwords
      }
    >>
    \context Staff = lower <<
      \clef bass
      \context Voice =
        tenors { \voiceOne << \tenor >> }
      \context Voice =
        basses { \voiceTwo << \bass >> }
    >>
  >>
  \layout {
    \context {
      \Score
      % **** Turns off bar numbering
      \remove "Bar_number_engraver"
    }
    \context {
      \Lyrics
      % **** Prevents lyrics from running too close together
      \override LyricSpace #'minimum-distance = #0.6
      % **** Makes the text of lyrics a little smaller
      \override LyricText #'font-size = #-1
      % **** Moves lines of lyrics closer together
      \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
    }
  }
}

\markup {
  \fill-line {
    " "
    \column {
      \small \caps \poet % poet
    }
  }
}



\paper {
  ragged-bottom = ##t
  top-margin = 0.25\in
  bottom-margin = 0.25\in
}

%{
  3-25-06 Moved to 2.8, fixed rests in refrain, moved to current formatting
          Ledger lines on the rests in the alto part still look bad.
%}

