\version "2.26.0"

%#(set-global-staff-size 60)
%#(set-global-staff-size 40)

\paper {
  #(set-paper-size "letter")
  markup-system-spacing =
    #'((basic-distance . 16)
       (minimum-distance . 10)
       (padding . 2))
  system-system-spacing =
  #'((basic-distance . 16 )
     (minimum-distance . 12 )
     (padding . 3)
     (stretchability . 10))
}

% \layout {
%   \context {
%     \Score
%     % no rest symbols
%     % skipBars = ##t
%   }
% }

% global = {
%   \override Staff.TimeSignature.style = #'()
%   \time 2/4
%   \key a \major
% }

\header {
  title = "Oceans of Grace"
  poet = \markup \column {
    " "
%    \override #'(span-factor . 0.5) \draw-hline
    "\"He said to me, 'My grace is sufficient for you, for My strength is made perfect in weakness.'\""
    "2 Corinthians 12:9"
    " "
%    \override #'(span-factor . 1.0) \draw-hline
  }
  tagline = \markup \column {
    "Oceans of Grace"
    "2024 - 2026, Joe Opseth"
    "Introduction based on illustration of 2 Corinthians 12:9 by Charles Spurgeon"
    "Arranged with LilyPond."
  }
}

versePrelude = \lyricmode {
  Li -- ttle fish, li -- ttle fish,
  Swi -- _ mming, swi -- _ mming,
  O -- o -- oh, O -- o -- o -- o -- o -- oh
  O -- o -- cean
  O -- o -- cean
  Do you have en -- ough wa -- ter for me?

  Oh, li -- ttle fish
  I have en -- ough wat -- er for thee.
}

verseOne = \lyricmode {
  Oc -- eans of grace
  Acc -- essed by faith in Je -- sus Christ
  By faith in Him we stand
  A free gift of faith
  Given us through the grace
  Of our Fa -- ther
  Acc -- ord -- ing to His plan
}

verseTwo = \lyricmode {
  Our sins washed a -- way
  When we were
  With -- out strength
  Chr -- ist died
  To bring us to God
  And God by His strength
  Raised Je -- sus from the grave
  O -- oh wor -- ship Him,
  the La -- mb that was slain.
}

bridgeOne = \lyricmode {
  Fo -- r God
  loved the world
  in this way:
  That He gave His
  o -- nly Son

  That by faith in Him a -- lone
  We should be saved
  Not by works that we have done

  All vain boa -- sting of man
  Is put to shame
  Oh, sal -- va -- tion be -- longs
  to the Lord!

  He has made and He will ca -- rry
  us all the way
  He will com -- plete what He has be -- gun
  What He has be -- gun
}

verseThree = \lyricmode {
  My God is my strength
  In the light of His face
  I re -- joice
  My vic -- to -- ry is won
  And I'll ev -- er sing the praise
  Of the glo -- ry of His grace
  In Je -- sus Christ,
  the true and ho -- ly One.
}

musicPrelude = \relative {
  \section
  \sectionLabel "Introduction"
  c'8 d4 e8( e2)     |
  e8 f4 g8( g2)      |
  g8 f4 e8( e2)      |
  e8 d4 c8( c2)      |
  c4 d4 e2           |
  r8 e8 f4 g4. f8(   |
  f4) e8 e( e2)      |
  r1                 |
  e8 d4( d8) c2(     |
  c) r               |
  e8 d4 c8( c2       |
  c) r4 e8 e         |
  \tuplet 3/2 { e2 d2 c2 } |
  \tuplet 3/2 { e2 d2 c2 } |
  d1                 |
  r1                 |
  c1                 |
  e8 d4 c8( c2       |
  c2) r4 e4          |
  \tuplet 3/2 { e2 d2 c2 } |
  e4. d4. c4         |
  c2. r4             |
}

musicOne = \relative {
  \section
  %  \sectionLabel "Oceans of Grace"
  \sectionLabel "Verse One"
  \break
  g'4. e4. d4   |
  c1            |
  g'4. e d4     |
  c4. c8 c e4.  |
  c2( c4.) c8   |
  c4. c8 g'4 d8 d( |
  d2 d4.) g8   |
  g4. e4. d4    |
  c1            |
  g'8 g4. \tuplet 3/2 { e4 d c( } |
  c2) c8 e4.    |
  c8 c2. c8     |
  c4 e d c8 c(  |
  c2 c4.) g'8   |
}

musicTwo = \relative {
  \section
  \sectionLabel "Verse Two"
  \break
  g'2 e4 d       |
  c2( c8) g'8 g4 |
  g2 e8 d4.      |
  c2  c4 e       |
  c2. r8 c       |
  c2( c8) g'8 d4 |
  d2. g4         |
  g4. e4 d4.     |
  c2.   g'4      |
  g g e d        |
  c2 c4 e        |
  c c8 c2 c8     |
  c4 e d c       |
  c1             |
  r2 c4 b4       |
}

musicBridge = \relative {
  \section
  \sectionLabel "Bridge"
  \break
  a2 a4 a4       |
  b2 b4 b4       |
  c1(            |
  c4) r c d      |
  f2 e2          |
  d2 c2          |
  d1(            |
  d4) r4 c b     |
  
  a4. a8 a4 a    |
  b4. b8 b4 c    |
  c1(            |
  c4) r c d      |
  f2 e           |
  d c            |
  d1(            |
  d4) r c b      |

  a2 a4 a        |
  b4. b8 b4 b    |
  c1(            |
  c4) r c d      |
  \tuplet 3/2 { f2 f f } |
  \tuplet 3/2 { f d c }  |
  d1(            |
  d4) r c b      |

  a4. a8 \tuplet 3/2 { a4 a b } |
  b4. b8 b4 c    |
  c1(            |
  c8) r4 c8 d4 e |
  f4. e d4       |
  c4. d d4(      |
  d4.) r8 d4 d   |
  d4. c c4(      |
  c2)   r4 g'4   |
}

musicThree = \relative {
  \section
  \sectionLabel "Verse Three"
  \break
  g'4. e8 d4 c4( |
  c2 c8) r8 g' g |
  g4. e8 d4 c4(  |
  c2) c4 e       |
  c2.    r8 c    |
  c c4 g'4 d4.   |
  d2  r8 d g4    |
  g8 g4.  e4 d   |
  c2.     g'8 g  |
  g8 g4.  e4 d   |
  c4. c8 c4 e    |
  c2( c4.) c8    |
  c4 e d c       |
  c2. r4         |
}

\score {
  <<
    \new Voice = "melody" {
      \clef treble
      \time 4/4
      % tempo 68
      \key c \major
      \musicPrelude
      \musicOne
      \musicTwo
      \musicBridge
      \musicThree
    }

    \new Lyrics \lyricsto "melody" {
      %      \set includeGraceNotes = ##t
      \versePrelude
      \verseOne
      \verseTwo
      \bridgeOne
      \verseThree
    }
  >>
  
  \layout {	
    \context {
      \Lyrics
      \override SpacingSpanner.base-shortest-duration = #(ly:make-moment 1 12)
      \override VerticalAxisGroup.minimum-Y-extent = #'(0 . 0)
    }
  }
}

\score {
  <<
    \new Voice = "midi melody" {
      \time 2/4
      \key c \major
      \musicOne
      \musicTwo
    }
  >>
  \midi { }
}