% “ = 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)
%<<{\voiceOne } \new Voice {\voiceTwo }>> \oneVoice

\version "2.12.3"
#(ly:set-option 'point-and-click #f)
%#(set-global-staff-size 15)

\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 = "Dyra förvissning"
    subtitle = "(Blessed Assurance)"
    %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 9/8
    \key d \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"
    Dy -- ra för -- viss -- ning, fri -- köpt jag är!
    O hvil -- ken för -- smak af him -- len ren här!
    Arf -- vin -- ge ge -- nom nå -- den al -- len,
    Född af Guds an -- de, tva -- gen och ren.
    
    Nu är min vi -- sa, nu är min sång,
    Je -- sus att pri -- sa lef -- na -- den lång.
    Nu är min vi -- sa, nu är min sång,
    Je -- sus att pri -- sa lef -- na -- den lång.
}
sopWordsTwo = \lyricmode
{
    \set stanza = "2. "
    Helt jag mig lem -- nat, helt han mig ger
    Fräls -- nin -- gens fröjd, som jag nju -- ter allt mer.
    Eng -- lar -- ne brin -- ga hels -- ning från Gud,
    Hvi -- ska till hjer -- tat him -- mel -- ska bud.
}
sopWordsThree = \lyricmode
{
    \set stanza = "3. "
    Helt jag mig lem -- nat, hvi -- la jag fått;
    Nu med min Je -- sus jag har det så godt.
    Helt i hans kär -- lek upp -- gått jag har,
    Vän tar blott ett: att hem han mig tar.
}
sopWordsFour = \lyricmode
{
    \set stanza = "4. "
}
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 = 90
            \partial 4.
            fis'8 e' d' a'4. a' g'8 a' b' a'2. a'8 fis' a' d''4. cis''4 cis''8
            b'8 a' gis'8 a'2. \bar "" \break fis'8 e' d' a'4. a' g'8 a' b' a'2.
            d'8 e' fis' g'4. e' d'8 e' cis' d'2. \bar "" \break a'8 a' a' d''4. a'
            b'8 b' b' a'2. a'8 a' a' b'4. d'' cis''8 cis'' b' cis''2. \bar "" \break cis''8 d'' e''
            d''4. a' b'8 a' b' a'2. d'8 e' fis' g'4. e' d'8. e'16 cis'8 d'2.
            
            \bar "|."
        }

        \new Voice = "altos"
        {
            \voiceTwo
            d'8 d' d' d'4. fis' d'8 d' d' d'2. fis'8 d' fis' fis'4. e'4 e'8
            e'8 e' e' e'2. d'8 d' d' d'4. fis' d'8 d' d' d'2.
            d'8 d' d' e'4. b d'8 cis' a a2. fis'8 fis' fis' fis'4. fis'
            g'8 g' g' fis'2. fis'8 fis' fis' g'4. a' a'8 a' gis'8 a'2. g'8 g' g'
            fis'4. fis' g'8 fis' g' fis'2. d'8 cis' d' e'4. b d'8. cis'16 a8 a2.
        }

        \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
            a8 g fis fis4. a b8 fis g fis2. a8 a a a4. a4 a8
            d'8 cis' b cis'2. a8 g fis fis4. a b8 fis g fis2.
            fis8 g a b4. g fis8 g e fis2. d'8 d' d' a4. d'
            d'8 d' d' d'2. d'8 d' d' d'4. d' e'8 e' e' e'2. a8 b cis'
            d'4. d' d'8 d' d' d'2. a8 a a b4. g fis8. g16 e8 fis2.
        }

        \new Voice = "basses"
        {
            \voiceFour
            d8 d d d4. d d8 d d d2. d8 d d d4. e4 e8
            e8 e e a,2. d8 d d d4. d d8 d d d2.
            d8 d d g,4. g, a,8 a, a, d2. d8 d d d4. d
            g8 g g d2. d8 d d g4. fis e8 e e a2. a8 a a
            d4. d d8 d d d2. fis8 e d g,4. g, a,8. a,16 g,8 d2.
        }
    >>
    \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: Frances Jane Crosby (1820–1915), 1873}
    \line{\italic Musik: Phoebe Palmer Knapp (1839–1908), 1873}
    %\line{\italic {Text och Musik:} }
    \line{\italic Källa: \italic Jubelklangen, 1896 (nr 99)}
    \line{\italic {Rom. 8:16–17}}
    }
}