﻿% “ = U+201C (left formatted quote)
% ” = U+201D (right formatted quote)
% — = U+2014 (em dash)
% – = U+2013 (en dash)
% © = U+00A9 (copyright symbol)
% ® = U+00AE (registered copyright symbol)
% ℗ = U+2117 (published; phonorecord sign)

\version "2.12.3"
#(ly:set-option 'point-and-click #f)

\paper
{
    indent = 0.0
    line-width = 185 \mm
    %between-system-space = 0.1 \mm
    %between-system-padding = #1
    %ragged-bottom = ##t
    %top-margin = 0.1 \mm
    %bottom-margin = 0.1 \mm
    %foot-separation = 0.1 \mm
    %head-separation = 0.1 \mm
    %before-title-space = 0.1 \mm
    %between-title-space = 0.1 \mm
    %after-title-space = 0.1 \mm
    %paper-height = 32 \cm
    %print-page-number = ##t
    %print-first-page-number = ##t
    %ragged-last-bottom
    %horizontal-shift
    %system-count
    %left-margin
    %paper-width
    %printallheaders
		%systemSeparatorMarkup
		#(set-paper-size "a4" 'landscape)
}

\header
{
    %dedication = ""
    title = "Rock of Ages"
    %subtitle = ""
    %subsubtitle = ""
    % poet = \markup{ \italic Text: }
    % composer = \markup{ \italic Music: }
    %meter = ""
    %opus = ""
    %arranger = ""
    %instrument = ""
    %piece = \markup{\null \null \null \null \null \null \null \null \null \null \null \null \null \italic Slowly \null \null \null \null \null \note #"4" #1.0 = 70-100}
    %breakbefore
    %copyright = ""
    tagline = ""
}


global =
{
    %\override Staff.TimeSignature #'style = #'()
    \time 3/2
    \key bes \major
    \override Rest #'direction = #'0
    \override MultiMeasureRest #'staff-position = #0
}

sopWords = \lyricmode
{
    \override Score . LyricText #'font-size = #-1
    \override Score . LyricHyphen #'minimum-distance = #1
    \override Score . LyricSpace #'minimum-distance = #0.8
    % \override Score . LyricText #'font-name = #"Gentium"
    % \override Score . LyricText #'self-alignment-X = #-1
    \set stanza = "1. "
    %\set vocalName = "Men/Women/Unison/SATB"
    Rock of A -- ges, cleft for me,
    Let me hide my -- self in Thee;
    Let the wa -- ter and the blood,
    From Thy wound -- ed side which flowed,
    Be of sin the dou -- ble cure,
    Save from wrath and make me pure.
}
sopWordsTwo = \lyricmode
{
	\set stanza = "2. "
	Not the la -- bor of my hands
	Can ful -- fill Thy law's de -- mands;
	Could my zeal no re -- spite know,
	Could my tears for -- ev -- er flow,
	All for sin could not a -- tone,
	Though must cleanse, and though a -- lone.
}
sopWordsThree = \lyricmode
{
	\set stanza = "3. "
	No -- thing in my hands I bring,
	Si -- mply to the cross I cling,
	Na -- ked, come to Thee for dress,
	Hel -- pless, look to Thee for grace:
	Foul, I to the fount -- ain fly,
	Wash me, Sa -- viour, or I die.
}
sopWordsFour = \lyricmode
{
	\set stanza = "4. "
	    While I draw this fleet -- ing breath,
    When my eyes shall close in death,
    When I soar to worlds un -- known,
    See Thee on Thy judg -- ment throne,
    Rock of A -- ges, cleft for me,
    Let me hide my -- self in Thee.
}
sopWordsFive = \lyricmode
{
    \set stanza = "5. "
}
sopWordsSix = \lyricmode
{
    \set stanza = "6. "
}
sopWordsSeven = \lyricmode
{
    \set stanza = "7. "
}
altoWords = \lyricmode
{

}
tenorWords = \lyricmode
{

}
bassWords = \lyricmode
{

}

\score
{
    %\transpose es' d'
    <<
	\new Staff
	<<
	    %\set Score.midiInstrument = "Orchestral Strings"
	    %\set Score.midiInstrument = "Choir Aahs"
	    \new Voice = "sopranos"
	    {
		\voiceOne
		\global
		%\override Score.MetronomeMark #'transparent = ##t
		\override Score.MetronomeMark #'stencil = ##f
		
		%\override HorizontalBracket #'direction = #UP
		%\override HorizontalBracket #'bracket-flare = #'(0 . 0)
		%put \startGroup and \stopGroup after notes to create analysis brackets
		
		%\override TextSpanner #'dash-period = #-1
		%\override TextSpanner #'bound-details #'left #'text = \markup{ \concat{\draw-line #'(0 . -1.0) \draw-line #'(1.0 . 0) }}
		%\override TextSpanner #'bound-details #'right #'text = \markup{ \concat{ \draw-line #'(1.0 . 0) \draw-line #'(0 . -1.0) }}
		%put \stopTextSpan \startTextSpan after notes for hymn-style piano introduction brackets; also consider \mark \markup{} for measure markup
		
		\tempo 4 = 120
		\partial 2
		f'4. g'8 f'2 d' bes'4. g'8 f'1 bes'4. c''8 d''2. c''4 bes' a' bes'1 \bar "" \break
		a'4. bes'8 c''2. c''4 a' f' bes'1 a'4. bes'8 c''2. c''4 a' f' bes'1 \bar "" \break
		f'4. g'8 f'2 d' bes'4. g'8 f'1 bes'4. c''8 d''2. c''4 bes' a' bes'1
		\bar "|."
	    }

	    \new Voice = "altos"
	    {
		\voiceTwo
		d'4. es'8 d'2 bes d'4. es'8 d'1 f'4. g'8 f'2. es'4 d' c' d'1
		c'4. d'8 es'2. es'4 es' es' d'1 c'4. d'8 es'2. es'4 es' es' d'1
		d'4. es'8 d'2 bes d'4. es'8 d'1 f'4. g'8 f'2. es'4 d' c' d'1
	    }

	    \new Lyrics = sopranos { s1 }
	    \new Lyrics = sopranosTwo { s1 }
	    \new Lyrics = sopranosThree { s1 }
	    \new Lyrics = sopranosFour { s1 }
	    %\new Lyrics = sopranosFive { s1 }
	    %\new Lyrics = sopranosSix { s1 }
	    %\new Lyrics = sopranosSeven { s1 }
	    %\new Lyrics = altos { s1 }
	    %\new Lyrics = tenors { s1 }
	    %\new Lyrics = basses { s1 }
	>>


	\new Staff
	<<
	    \clef bass
	    \new Voice = "tenors"
	    {
		\voiceThree
		\global
		bes4. bes8 bes2 f f4. bes8 bes1 bes4. bes8 bes2. f4 f f f1
		f4. bes8 a2. a4 c' a bes1 c'4. bes8 a2. a4 c' a bes1
		bes4. bes8 bes2 f f4. bes8 bes1 bes4. bes8 bes2. f4 f f f1
	    }

	    \new Voice = "basses"
	    {
		\voiceFour
		bes,4. bes,8 bes,2 bes, bes,4. bes,8 bes,1 d4. es8 f2. f4 f f bes,1
		f4. f8 f2. f4 f f bes,1 f4. f8 f2. f4 f f bes,1
		bes,4. bes,8 bes,2 bes, bes,4. bes,8 bes,1 d4. es8 f2. f4 f f bes,1
	    }
	>>
	\context Lyrics = sopranos \lyricsto sopranos \sopWords
	\context Lyrics = sopranosTwo \lyricsto sopranos \sopWordsTwo
	\context Lyrics = sopranosThree \lyricsto sopranos \sopWordsThree
	\context Lyrics = sopranosFour \lyricsto sopranos \sopWordsFour
	%\context Lyrics = sopranosFive \lyricsto sopranos \sopWordsFive
	%\context Lyrics = sopranosSix \lyricsto sopranos \sopWordsSix
	%\context Lyrics = sopranosSeven \lyricsto sopranos \sopWordsSeven
	%\context Lyrics = altos \lyricsto altos \altoWords
	%\context Lyrics = tenors \lyricsto tenors \tenorWords
	%\context Lyrics = basses \lyricsto basses \bassWords
    >>
	
    \midi { }
    \layout
    {	
	\context
	{
	    \Lyrics
	    \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
	}
	\context
	{
	    \Voice
	    \consists "Horizontal_bracket_engraver"
	}
    }
}

\markup
{
    \column
    {
	\line{\italic Text: Augustus M. Toplady (1740–1778), 1776}
	\line{\italic Music: Thomas Hastings (1784–1872), 1830}
	%\line{\italic Arrangement: }
	%\line{\italic {Words and Music:} }
	\line{\italic {Tune Name:} Toplady}
	%\line{\italic {Poetic Meter:} }
	\line{\italic {Source: Relief Society Song Book,} 1919—no. 42}
    }
}