% Version 1.0
% Last edit: March 24, 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 = "Amazing Grace"
composer = \markup \italic "Virginia Harmony"
poet = "John Newton"
translator = "vs. 5 attr. John Reese"
meter = "C.M."
arranger = "harm. Edwin O. Excell"
piece = "New Britain"

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

melody = \relative c' {
  \world
  \autoBeamOff
  d4 |
  g2 b8[ g] |
  b2 a4 |
  g2 e4 |
  d2 d4 |
  g2 b8[ g] |
  b2 a4 |
  d2 b4 | % line 1
  d4.( b8) d8[ b] |
  g2 d4 |
  e4.( g8) g[ e] |
  d2 d4 |
  g2 b8[ g] |
  b2 a4 |
  g2 \bar "|."
}


alto = \relative c' {
  \world
  b4 |
  b2 d4 |
  d2 c4 |
  b2 c4 |
  b2 b4 |
  b2 d4 |
  d2 d4 |
  d2 d4 | % line 1
  d2 d4 |
  d2 d4 |
  c4.( d8) c4 |
  b2 d4 |
  b2 d4 |
  d2 c4 |
  b2 
}

tenor = \relative c' {
  \world
  g4 |
  d2 g4 |
  g2 fs4 |
  g2 g4 |
  g2 g4 |
  d2 g4 |
  g2 fs4 |
  g2 g4 | % line 1
  b4.( g8) b[ g] |
  g2 g4 |
  g2 e8[ g] |
  g2 g4 |
  g2 g8[ b] |
  g2 fs4 |
  g2 \bar "|."
}

bass = \relative c {
  \world
  g4 |
  g2 g8[ b] |
  d2 d4 |
  e2 c4 |
  g2 g4 |
  g2 g8[ b] |
  d2 c4 |
  b2 g4 | % line 1
  g'2 g4 |
  b,2 b4 |
  c4.( b8) c4 |
  g2 b4 |
  e2 d4 |
  d2 d4 |
  g,2
}

verseOne = \lyricmode {
  \set stanza = "1. "
  A -- maz -- ing grace! how sweet the sound,
  That saved a wretch like me!
  I once was lost, but now am found,
  Was blind, but now I see.
}

verseTwo = \lyricmode {
  \set stanza = "2. "
  'Twas grace that taught my heart to fear,
  And grace my fears re -- lieved;
  How pre -- cious did that grace ap -- pear
  The hour I first be -- lieved!
}

\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 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 { 
  \normalsize {
    \fill-line {
      \hspace #1
      \column {
	\line {
	  "3. "
	  \column {
	    "The Lord has promised good to me"
	    "  His word my hope secures;"
	    "He will my shield and portion be"
	    "  As long as life endures."
	  }
	}
	\hspace #1
	\line {
	  "4. "
	  \column {
	    "Through many dangers, toils, and snares"
	    "  I have already come;"
	    "́Tis grace hath brought me safe thus far,"
	    "  And grace will lead me home."
	    }
	  }
	\hspace #1
	\line {
	  "5. "
	  \column {
	    "When we've been there ten thousand years,"
	    "  Bright shining as the sun,"
	    "We've no less days to sing God's praise"
	    "  Then when we'd first begun."
	  }
	}
      }
      \hspace #1
    }
  }
}

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



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

%{
  Per _Worship and Service Hymnal_, #227. In the last verse,
  the phrase given is "we first begun", but I suspect this
  is a typo and corrected it.

  Change log:
  3-24-06 New hymn
%}


