\version "2.12.2"
#(set-default-paper-size "letter")
\paper {
#(set-paper-size "letter")
}

\header {
title = "The Pretty Girl Milking the Cow"
%subtitle = ""
%piece = ""
%instrument = \markup { \fontsize #-2.5 "D Instrument — Hardingfele" }
composer = ""
}


  % #(set-global-staff-size 20) % change staff size

%\markup { \fontsize #2.5 "The Pretty Girl Milking the Cow"} % add title on left above tune

melody = \relative c' 
{
\clef treble \key a \minor
\time 9/8

\set Score.markFormatter = #format-mark-box-letters

\override Score.RehearsalMark #'extra-offset = #'(-1.5 . 1.0)
\mark \default  		% A Section

\repeat volta 2 { 
\partial 8 a'16\upbow( b)
c8( e) c b(d) b a( g) a16( b)
c8( e) c b( d) b a4 a16( b)
c8( e) c b( d ) b a( g) a16( b)
e16 d c b a g e8( a) a16( b) a4
}

\break
	
\override Score.RehearsalMark #'extra-offset = #'(-1.5 . 1.0)	
\mark \default  		% B Section
\repeat volta 2 { 
\partial 8 a16\upbow( b)

% make beat groups into 3 groups of 8th notes
\set Score.beatLength = #(ly:make-moment 3 8)

c8. d16( e fis) g8[( a) fis] g( b,) a16( b)
c8. d16( e f) g8. a16( b g) a4 a8
g8( e) e d[( b) b] a( g) a16( b) 
c8. a16( b g) e8( a) a16( b) a4
}


}

chordnames = \chordmode {

r8 a4.:m e4.:m d4.:m a4.:m e4.:m f4. a4.:m e4.:m d4.:m e4.:m a2.:m
a4.:m e4.:m g4. a4.:m e4.:m a4.:m e4.:m g4. f4. d4.:m7 a4.:m a4:m 
   }

\score {
  <<
%  \transpose d c  			%% transpose down whole tone for hardingfele
    \new ChordNames {
      \set chordChanges = ##t
      \chordnames

     }
%  \transpose d c  			%% transpose down whole tone for hardingfele
  {
    \melody
  }
  >>
  
  \layout { }
 }


