\version "2.10.25"
\include "english.ly"

#(set-global-staff-size 22)

\paper {
    #(set-paper-size "letter") 
}

setUpFingerings = {
    \set fingeringOrientations = #'(right)
    \override Fingering #'color = #blue
}

setUpFingeringsDotted = {
    \set fingeringOrientations = #'(right)
    \override Fingering #'color = #blue
    \once \override Fingering #'padding = #1.2
}

stickRH = \relative c' {
     
     \clef "treble_8"
     \key d \major
     \time 3/4
     \set Staff.instrumentName = "Melody"
     \set Staff.midiInstrument = "acoustic guitar (steel)"
     \set fingeringOrientations = #'(right)
     \override Fingering #'color = #blue
     \override DynamicText #'font-size = #-2
     
     %Bar 25 Section D4
     <<
        { \setUpFingeringsDotted <d-2>2. ~ } \\
        { \setUpFingerings r4 <e,-1 a-1>2 }
     >> |
     
     %Bar 26 Section D5
     <<
        { \setUpFingerings <d'-2>2 <d-2>4\< } \\
        { \setUpFingerings r4 <d,-1>2 }
     >> |
     
     %Bar 27 Section D6
     <<
        { \setUpFingerings <e'-2>4 <f-2> <g-3>  } \\
        { \setUpFingerings r4 <d,-1>2 }
     >> |
        
     

}

fretsRH = \lyricmode {
    \override LyricText #'font-size = #-3
    \override LyricText #'color = #darkgreen

    %Bar 25 Section D4
    "10"4 "10.10"2
    %Bar 26 Section D5
    "10"4 "8" "10"
    %Bar 27 Section D6
    "12"4 "13.11" "15"
    
}
    

stickLH = \relative c, {
    
    \clef "bass_8"
    \key d \major
    \time 3/4
    \set Staff.instrumentName = "Bass"
    \set Staff.midiInstrument = "acoustic guitar (steel)"
    \set fingeringOrientations = #'(right)
    \override Fingering #'color = #blue
    
    %Bar 25 Section D4
    <<
        { \setUpFingerings r4 <c'-2>2} \\
        { \setUpFingeringsDotted <d,,-1>2. }
    >> |
    
    %Bar 26 Section D5
    <<
        { \setUpFingerings r4 <c''-2 fs,-3>2} \\
        { \setUpFingeringsDotted <d,,-1>2. }
    >> |
    
    %Bar 27 Section D6
    <<
        { \setUpFingerings r4 <c''-2>2 } \\
        { \setUpFingeringsDotted <d,,-1>2. }
    >> |
    
}

fretsLH =  \lyricmode {
    \override LyricText #'font-size = #-3
    \override LyricText #'color = #darkred
    
    %Bar 25 Section D4
    "2"4 "3"2
    %Bar 26 Section D5
    "2"4 "4.3"2
    %Bar 27 Section D6
    "2"4 "3"2
    
}

theChords = \chords {
    \override ChordName   #'font-size = #-3
    \set majorSevenSymbol = \markup { "M7" }
    
    c2.:6.9/d
    d:7
    d:min7 
    
}

\score {
    \new StaffGroup <<
        \new Staff = melodyStaff <<
            \new ChordNames  {\theChords }
            \new Voice = "melody" { \stickRH }
            \new Lyrics \with {alignAboveContext=melodyStaff} \fretsRH
        >>
        \new Staff = bassStaff <<
            \new Voice = "bass" { \stickLH }
            \new Lyrics \with {alignBelowContext=bassStaff} \fretsLH
        >>
       
    >>
    \layout {}
    \midi {
        \context {
            \Score tempoWholesPerMinute = #(ly:make-moment 80  4)
        }
    }

}
