\include "deutsch.ly" 

#(ly:set-option 'point-and-click #f)

#(set-default-paper-size "a4")

% Sinnvoller Bereich ca. 17 ... 21
#(set-global-staff-size 17) 


\version "2.12.3" 


global = { \key es \major \time 4/2 } 

SopNote = \relative c'
{ 
    \autoBeamOff
    as'4 b c2 c4 b2 c4                    | % 1
    f, g b2 g r4 g8 g                     | % 2
    g g \bar "" g g as4 as b2 b4 c        | % 3
    b( as2) g4 as2 r4 as \noBreak         | % 4
    g b8 b f4 g \bar "" as2 g4 g \noBreak | % 5
    as as8 as b g as b c4 c8 c b4 as      | % 6
    g1 f \bar "|." 

} 

AltNote = \relative c' 
{ 
    \autoBeamOff
    f4 g as2 as4 g2 g4              | % 1
    as g f2 e r4 e8 e               | % 2
    e e e e f4 f g2 g4 as           | % 3
    f2 es es r4 es                  | % 4
    es f8 f as4 g f2 e4 e           | % 5
    f f8 f g es f g as4 as8 as f4 f | % 6
    e( f2 e4) f1 \bar "|." 
} 

TenNote = \relative c' 
{ 
    \autoBeamOff
    c4 es es2 es4 es2 es4                 | % 1
    c c f,2 c' r4 c8 c                    | % 2
    c c c c c4 c es2 es4 es               | % 3
    des2 b as r4 c                        | % 4
    b des8 des c4 c c2 c4 c               | % 5
    c c8 c es b des des es4 es8 es des4 c | % 6
    c1 c \bar "|." 
} 

BasNote = \relative c 
{ 
    \autoBeamOff
    f4 es as2 as4 es2 c4                | % 1
    f es des2 c r4 c8 c                 | % 2
    c c c c f4 f es2 es4 c              | % 3
    des2 es as, r4 as                   | % 4
    es' b8 b f'4 e f2 c4 c              | % 5
    f f8 f es es des b as4 as8 as b4 f' | % 6
    c1 f \bar "|." 
} 


StfTxtLnA = \lyricmode {
Al -- ler Au -- gen war -- ten                                  | % 1
auf dich, Her -- re, und du                                     | % 2
gi -- best ih -- nen ih -- re Spei -- se zu                     | % 3
sei -- ner Zeit. Du                                             | % 4
tust dei -- ne mil -- de Hand auf und                           | % 5
sät -- ti -- gest al -- les was da le -- bet, mit Wohl -- ge -- | % 5
fal -- -- -- len.

} 



%--------------------
% Maintainer: Sven Kaiser / e-mail: noten(at)oemsel.de
% aller_augen_warten_auf_dich_herre_schuetz_s-a-t-b.ly
% 2012-08-25

\header {
  % Headers completely removed by setting them to false -> nnn = ##f
  % Second line -> header = \markup \center-align { "Header first line" "Header second line" }
  % Formats -> header = \markup { \formatdef "headertext" }
    % formatdef -> \teeny \tiny \normalsize \large \huge \bold \italic \normal-text

  %The title of the music, centered just below the dedication. 
  title ="Aller Augen warten auf dich, Herre"

  %Name of the poet, flush-left below the subtitle. 
  poet ="Psalm 145, 15 - 16"

  %Name of the composer, flush-right below the subtitle. 
  composer ="Heinrich Schütz (1585 - 1672)"

  %This forces the title to start on a new page (set to ##t or ##f). 
  breakbefore = ##f

  %Centered at the bottom of the last page. Default is “Music engraving by LilyPond (version)”.
  %tagline =\markup { \tiny "Music engraving by LilyPond 2.10.25—www.lilypond.org" }
  tagline = \markup { \tiny \italic"Notensatzprogramm: http://lilypond.org   -   Notendownload: www.oemsel.de/noten" }}  



% Defintion Formate Seitensatz
\paper{
  top-margin = 1\cm
  left-margin = 2\cm
  line-width = 17\cm
  after-title-space = 2.3\cm
  bottom-margin = 1.3\cm  

  % If true, systems not spreaded vertically across all "not-last" pages; def. = false. 
  ragged-bottom = ##t

  % If false, systems spreaded vertically to fill the last page. Def. = true.
  %ragged-last-bottom = ##f
  
  % For proper vertikal system distribution either
    between-system-space = 2.5\cm
  % or
    %between-system-padding = 2\cm

  print-page-number = ##f
}

% Aufbau SATB mit einzelnen Notenzeilen und (mehrstrophigen) Text unter jeder Notenzeile
\score {
	\new ChoirStaff <<
		\new Staff = "SopStf" <<
    			\clef "G2"
			\set Staff.instrumentName = \markup {\center-align {"Sopran "}}
			\new Voice = "SopVce" {\global \SopNote} 
		>>
			\new Lyrics = SopTxtLnA { s1 }

		\new Staff ="AltStf" <<
			\clef "G2"
			\set Staff.instrumentName = \markup {\center-align {"Alt "}}
			\new Voice = "AltVce" {\global \AltNote} 
		>>
			\new Lyrics = AltTxtLnA { s1 }

		\new Staff ="TenStf" <<
			\clef "G2_8"
			\set Staff.instrumentName = \markup {\center-align {"Tenor "}}
			\new Voice = "TenVce" {\global \TenNote} 
		>>
			\new Lyrics = TenTxtLnA { s1 }

		\new Staff ="BasStf" <<
			\clef "F"
			\set Staff.instrumentName = \markup {\center-align {"Bass "}}
			\new Voice = "BasVce" {\global \BasNote} 
		>>
			\new Lyrics = BasTxtLnA { s1 }


		\context Lyrics = SopTxtLnA \lyricsto SopVce \StfTxtLnA
		\context Lyrics = AltTxtLnA \lyricsto AltVce \StfTxtLnA
		\context Lyrics = TenTxtLnA \lyricsto TenVce \StfTxtLnA
		\context Lyrics = BasTxtLnA \lyricsto BasVce \StfTxtLnA
	>>

	% erste Zahl: Schläge pro Minute / zweite Zahl: Bezugsnotenlänge, z.B. 4 entsprich Viertelnote
   	%\midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 100 4) } }
	
		\layout { 
        	% erster Parameter: Abstand Notenlinie / Text in einer Stimme ->
	  % Je größer der Zahlenwert dto kleiner der Abstand ; Standardwert -4
        	% zweiter Parameter: Abstand Text / Notenlinie zwischen zwei verschiedenen Stimmen ->
	  % Je größer der Zahlenwert dto größer der Abstand ; Standardwert 4
        	\context { \Staff \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 5) }

	% schaltet die Nummerierung der Takte aus
	%\context { \Score \remove "Bar_number_engraver" } 

 	% Steuert die Höhe der Taktnummerierung über dem System
	\context { \Score \override BarNumber #'padding = #2.0 } 

	% steuert die Einrückung d ersten Systems; Standardwert = automatisch eingerückt
        %indent = #0

	% f (Standardwert) = letzte/s Zeile/System wird auf Zeilenlänge gestreckt
	%ragged-last = ##t

	% f (Standardwert) = alle Zeilen/Systeme werden auf Zeilenlänge gestreckt;
	% kann insb. zur Kontrolle der ungesteckten Zeilenlängen verwendet werden
	%ragged-right = ##t
	}
}
