\version "2.18.2"

#(ly:set-option 'point-and-click #t)

%--------------------
% Maintainer: Sven Kaiser / e-mail: noten(at)oemsel.de
% nun_sich_der_tag_geendet_hat_reger.ly
% 2016-05-16

\header {
    poet = \markup { \left-column {{"Strophe 1: Adam Krieger 1665"} \line {"Strophen 2-4: Johann Friedrich Herzog 1670"}}}
    composer = \markup { \right-column {{"Melodie: nach Adam Krieger (1634 - 1666)"} \line {"Satz: Max Reger (1873 - 1916)"}}}
    title = "Nun sich der Tag geendet hat"
%    subtitle = ""
  tagline = \markup { \tiny \italic"Diese Noten sind gemeinfrei  -  Rev. 1  -  Notensatzprogrammierung S. Kaiser mit http://lilypond.org   -   Notendownload: www.oemsel.de/noten" }
}

#(set-global-staff-size 15.5)

\paper {
    paper-width = 21.0\cm
    paper-height = 29.7\cm
    top-margin = 0.5\cm
    bottom-margin = 1.3\cm
    left-margin = 1.7\cm
    right-margin = 1.7\cm
    print-page-number = ##f
    ragged-bottom = ##t
    markup-system-spacing = #'((basic-distance . 21) (padding . 0.0) (stretchability . 60.0))
    system-system-spacing #'basic-distance = #28
    ragged-right = ##f
    ragged-last = ##f
}

\layout {
    \context { \Score autoBeaming = ##f}
}

SopranVoice =  \relative c' {
  \clef "treble" \key g \minor \time 4/4
  \once \override TextScript #'padding = #2.0
  \once \override TextScript #'X-offset = #-10.0
  \once \override TextScript #'Y-offset = #6.0
  \partial 4 d'4 ^\p ^\< ^\markup{ \large {Langsam} } |
  g,4 \! a4 bes4 bes4 |
  c4 c4 ^\> d2 \! |
  r4 d4 ^\mf ^\< c4 \! c4 |
  d8[ c8] bes4 ^\> a2 ^\p \! \break |
  r4 d4 ^\mf ^\< bes4 a4 \! |
  bes4 g4 \override Hairpin.to-barline = ##f fis4 ^\> g4 |
  a2. \!
  \once \override TextScript #'padding = #2.0
  \once \override TextScript #'X-offset = #4.0
  \once \override TextScript #'Y-offset = #6.0
  d4 ^\pp ^\markup{ \italic {"poco a poco rit.      .      .      .      .      .      .      ."} }
  c4 ^\> bes4 a4 a4 ^\! |
  g2. \fermata
  \bar "|."  
}

SopranVoiceLyricsOne =  \lyricmode { \set stanza = "1."
Nun sich der Tag ge -- en -- det hat
und kei -- ne Sonn' mehr scheint,
schläft al -- les, was sich ab -- ge -- matt'
und was zu -- vor ge -- weint.
}

SopranVoiceLyricsTwo =  \lyricmode { \set stanza = "2." 
Nur du, mein Gott, hast kei -- ne Rast,
du schläfst noch schlum -- merst nicht;
die Fins -- ter -- nis ist dir ver -- haßt,
weil du bist selbst das Licht.
}

SopranVoiceLyricsThree =  \lyricmode { \set stanza = "3." 
Ge -- den -- ke, Herr, doch auch an mich
in die -- ser schwar -- zen Nacht,
und schen -- ke du mir gnä -- dig -- lich
den Schutz von dei -- ner Wacht.
}

SopranVoiceLyricsFour =  \lyricmode { \set stanza = "4." 
Drauf tu' ich mei -- ne Au -- gen zu
und schla -- fe fröh -- lich ein,
mein Gott wacht jetzt in mei -- ner Ruh;
wer wollt noch trau -- rig sein?
}


AltVoice =  \relative c' {
  \clef "treble" \key g \minor \time 4/4 
  \partial 4 f4 ^\p ^\< |
  es4 \! es4 d4 es4 |
  es4 f8[ ^\> es8] d2 \! |
  r4 g8[ ^\mf ^\< f8] es8[ \! f8] g4 |
  as4 g4 ^\> fis2 ^\p \! |
  r4 f4 ^\mf ^\< es4 es4 \! |
  d4 es4 \override Hairpin.to-barline = ##f es4 ^\> d4 |
  cis2. \!
  \once \override TextScript #'padding = #2.0
  \once \override TextScript #'X-offset = #4.0
  \once \override TextScript #'Y-offset = #6.0
  g'4 ^\pp ^\markup{ \italic {"poco a poco rit.      .      .      .      .      .      .      ."} } |
  es4 ^\> d4 es4 d8[ c8] ^\! |
  b2. \fermata
  \bar "|."  
}

AltVoiceLyricsOne =  \lyricmode { \set stanza = "1."
Nun sich der Tag ge -- en -- det hat
und kei -- ne Sonn' mehr scheint,
schläft al -- les, was sich ab -- ge -- matt'
und was zu -- vor ge -- weint.
}

AltVoiceLyricsTwo =  \lyricmode { \set stanza = "2." 
Nur du, mein Gott, hast kei -- ne Rast,
du schläfst noch schlum -- merst nicht;
die Fins -- ter -- nis ist dir ver -- haßt,
weil du bist selbst das Licht.
}

AltVoiceLyricsThree =  \lyricmode { \set stanza = "3." 
Ge -- den -- ke, Herr, doch auch an mich
in die -- ser schwar -- zen Nacht,
und schen -- ke du mir gnä -- dig -- lich
den Schutz von dei -- ner Wacht.
}

AltVoiceLyricsFour =  \lyricmode { \set stanza = "4." 
Drauf tu' ich mei -- ne Au -- gen zu
und schla -- fe fröh -- lich ein,
mein Gott wacht jetzt in mei -- ner Ruh;
wer wollt noch trau -- rig sein?
}

TenorVoice =  \relative c' {
  \clef "treble_8" \key g \minor \time 4/4
  \partial 4 bes4 ^\p ^\< |
  bes4 \! c4 bes4 g4 |
  as4 as4 ^\> a2 \! | 
  r4 bes4 ^\mf ^\< c4 \! c4 |
  f8[ es8] d4 ^\> d2 ^\p \! |
  r4 bes4 ^\mf ^\< g4 c4 \! |
  bes4 bes4 \override Hairpin.to-barline = ##f a4 ^\> bes4 |
  e,2. \! 
  \once \override TextScript #'padding = #2.0
  \once \override TextScript #'X-offset = #4.0
  \once \override TextScript #'Y-offset = #6.0  
  bes'4 ^\pp ^\markup{ \italic {"poco a poco rit.      .      .      .      .      .      .      ."} } |
  as4 ^\> f4 c'4 fis,4 ^\! |
  g2. \fermata
  \bar "|."
}

TenorVoiceLyricsOne =  \lyricmode { \set stanza = "1."
Nun sich der Tag ge -- en -- det hat
und kei -- ne Sonn' mehr scheint,
schläft al -- les, was sich ab -- ge -- matt'
und was zu -- vor ge -- weint.
}

TenorVoiceLyricsTwo =  \lyricmode { \set stanza = "2." 
Nur du, mein Gott, hast kei -- ne Rast,
du schläfst noch schlum -- merst nicht;
die Fins -- ter -- nis ist dir ver -- haßt,
weil du bist selbst das Licht.
}

TenorVoiceLyricsThree =  \lyricmode { \set stanza = "3." 
Ge -- den -- ke, Herr, doch auch an mich
in die -- ser schwar -- zen Nacht,
und schen -- ke du mir gnä -- dig -- lich
den Schutz von dei -- ner Wacht.
}

TenorVoiceLyricsFour =  \lyricmode { \set stanza = "4." 
Drauf tu' ich mei -- ne Au -- gen zu
und schla -- fe fröh -- lich ein,
mein Gott wacht jetzt in mei -- ner Ruh;
wer wollt noch trau -- rig sein?
}

BassVoice =  \relative c {
  \clef "bass" \key g \minor \time 4/4
  \partial 4 bes4 ^\p ^\< |
  es4 \! c4 g4 es'4 |
  as,4 f'4 ^\> fis2 \! |
  r4 g4 ^\mf ^\< as4 \! es4 |
  f4 g4 ^\> d2 ^\p \! |
  r4 bes4 ^\mf ^\< es4 c4 \! |
  g4 es'4 \override Hairpin.to-barline = ##f c4 ^\> bes4 |
  a2. \!
  \once \override TextScript #'padding = #2.0
  \once \override TextScript #'X-offset = #4.0
  \once \override TextScript #'Y-offset = #6.0  
  g4 ^\pp ^\markup{ \italic {"poco a poco rit.      .      .      .      .      .      .      ."} } |
  as4 ^\> bes4 c4 d4 ^\! |
  <d g,>2. \fermata
  \bar "|."
}

BassVoiceLyricsOne =  \lyricmode { \set stanza = "1."
Nun sich der Tag ge -- en -- det hat
und kei -- ne Sonn' mehr scheint,
schläft al -- les, was sich ab -- ge -- matt'
und was zu -- vor ge -- weint.
}

BassVoiceLyricsTwo =  \lyricmode { \set stanza = "2." 
Nur du, mein Gott, hast kei -- ne Rast,
du schläfst noch schlum -- merst nicht;
die Fins -- ter -- nis ist dir ver -- haßt,
weil du bist selbst das Licht.
}

BassVoiceLyricsThree =  \lyricmode { \set stanza = "3." 
Ge -- den -- ke, Herr, doch auch an mich
in die -- ser schwar -- zen Nacht,
und schen -- ke du mir gnä -- dig -- lich
den Schutz von dei -- ner Wacht.
}

BassVoiceLyricsFour =  \lyricmode { \set stanza = "4." 
Drauf tu' ich mei -- ne Au -- gen zu
und schla -- fe fröh -- lich ein,
mein Gott wacht jetzt in mei -- ner Ruh;
wer wollt noch trau -- rig sein?
}


% The score definition
\score {
  \new ChoirStaff
    <<
    \new Staff  <<
        \set Staff.instrumentName = "S"
        \context Staff << 
            \context Voice = "SopranVoice" { \SopranVoice }
            \new Lyrics \lyricsto "SopranVoice" \SopranVoiceLyricsOne
            \new Lyrics \lyricsto "SopranVoice" \SopranVoiceLyricsTwo
            \new Lyrics \lyricsto "SopranVoice" \SopranVoiceLyricsThree
            \new Lyrics \lyricsto "SopranVoice" \SopranVoiceLyricsFour
    
            >>
        >>
    \new Staff  <<
        \set Staff.instrumentName = "A"
        \context Staff << 
            \context Voice = "AltVoice" { \AltVoice }
            \new Lyrics \lyricsto "AltVoice" \AltVoiceLyricsOne
            \new Lyrics \lyricsto "AltVoice" \AltVoiceLyricsTwo
            \new Lyrics \lyricsto "AltVoice" \AltVoiceLyricsThree
            \new Lyrics \lyricsto "AltVoice" \AltVoiceLyricsFour
            >>
        >>
    \new Staff  <<
        \set Staff.instrumentName = "T"
        \context Staff << 
            \context Voice = "TenorVoice" { \TenorVoice }
            \new Lyrics \lyricsto "TenorVoice" \TenorVoiceLyricsOne
            \new Lyrics \lyricsto "TenorVoice" \TenorVoiceLyricsTwo
            \new Lyrics \lyricsto "TenorVoice" \TenorVoiceLyricsThree
            \new Lyrics \lyricsto "TenorVoice" \TenorVoiceLyricsFour
            >>
        >>
    \new Staff  <<
        \set Staff.instrumentName = "B"
        \context Staff << 
            \context Voice = "BassVoice" { \BassVoice }
            \new Lyrics \lyricsto "BassVoice" \BassVoiceLyricsOne
            \new Lyrics \lyricsto "BassVoice" \BassVoiceLyricsTwo
            \new Lyrics \lyricsto "BassVoice" \BassVoiceLyricsThree
            \new Lyrics \lyricsto "BassVoice" \BassVoiceLyricsFour
            >>
        >>
    >>
        \layout { 
  	% Steuert die HÃ¶he der Taktnummerierung Ã¼ber dem System        
        \context { \Score \override BarNumber.padding = #2.0 } 
        % steuert die Einrueckung des ersten Systems; Standardwert = automatisch eingerÃ¼ckt
        indent = #5
    }   
}

\score {
<<
\new Voice = "Sopran" { \autoBeamOff \SopranVoice }
\new Voice = "Alt" { \autoBeamOff \AltVoice }
\new Voice = "Tenor" { \autoBeamOff \TenorVoice }
\new Voice = "Bass" { \autoBeamOff \BassVoice }
>>
\midi { }
}