﻿% “ = 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.2"
#(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
}

\header
{
    %dedication = ""
    title = "När skall vårt öga"
    %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 2/4
    \key a \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"
    När skall vårt ö -- ga Skå -- da dig, Zi -- on, Guds stad?
    När från det hö -- ga Kom -- mer För -- los -- sa -- ren glad?
    När från det hö -- ga Kom -- mer För -- los -- sa -- ren glad?
}
sopWordsTwo = \lyricmode
{
    \set stanza = "2. "
    Her -- ren till -- dö -- mer Hög -- het och ä -- ra och makt
    Till den ej glöm -- mer, Hvad han om Zi -- on har sagt.
    Till den ej glöm -- mer, Hvad han om Zi -- on har sagt.
}
sopWordsThree = \lyricmode
{
    \set stanza = "3. "
    Arf -- vet på jor -- den Gud vill till al -- la be -- stå,
    Hvil -- ka de or -- den, Som han har ta -- lat, för -- stå.
    Hvil -- ka de or -- den, Som han har ta -- lat, för -- stå.
}
sopWordsFour = \lyricmode
{
    \set stanza = "4. "
    Där -- för vi dra -- ga Hem -- åt i brö -- dra -- för -- bund,
    Hvar vi mot -- ta -- ga Vis -- het ur vis -- do -- mens brunn.
    Hvar vi mot -- ta -- ga Vis -- het ur vis -- do -- mens brunn.
}
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 = 85
		a'4 e'8. cis''16 cis''4 a' cis'' a'8 a' b'4 cis''8 d'' cis''4. r8 \break
		cis''4 gis'8. gis'16 a'4 fis'4 e' e'8 e' d''4 cis''8 b' cis''4. r8 \break
		cis''4 gis'8. gis'16 a'4 fis' e' e'8 e' d''4 cis''8 b' a'4. r8
		\bar "|."
	    }

	    \new Voice = "altos"
	    {
		\voiceTwo
		cis'4 cis'8. e'16 e'4 cis'4 cis' cis'8 cis' e'4 e'8 e' e'4. s8
		eis'4 eis'8. eis'16 fis'4 cis' e' d'8 cis' b4 e'8 e' e'4. s8
		eis'4 eis'8. eis'16 fis'4 cis' e' d'8 cis' b4 e'8 d' cis'4. s8
	    }

	    \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
		e4 a8. a16 a4 a a a8 a gis4 a8 b a4. r8
		gis4 cis'8. cis'16 cis'4 a4 cis' b8 a gis4 a8 gis a4. r8
		gis4 cis'8. cis'16 cis'4 a cis'4 b8 a gis4 a8 gis a4. r8
	    }

	    \new Voice = "basses"
	    {
		\voiceFour
		a,4 a,8. a,16 a,4 a, fis fis8 fis e4 e8 e a,4. s8
		cis4 cis8. cis16 fis4 fis a gis8 a e4 e8 e a,4. s8
		cis4 cis8. cis16 fis4 fis a gis8 a e4 e8 e a,4. s8
	    }
	>>
	\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: P. O. Thomasson}
	\line{\italic Musik: Carl Sjögren}
	%\line{\italic Arrangement: }
	%\line{\italic {Words and Music:} }
	%\line{\italic {Tune Name:} }
	%\line{\italic {Poetic Meter:} }
	\line{\italic Källa: Zions Sånger, 1910 (nr. 73)}
    }
}