\version "2.16.0"
\include "../bagpipe_new.ly"
\include "../bagpipe_extra.ly"

\score {

  {
    \bagpipeKey
    \time 6/8

    % Part 1

    \repeat volta 2 {
      \partial 8 e8
      \grg G \grd a \gre a \grg a8. \taor a8.
      \grg b8 c d \dble e4 f8
      g \grA f g \grA e g e
      \grg d b \grd G \dblG G4 \grd b8
      \break
      \grg G \grd a \gre a \grg a8. \taor a8.
      \grg b8 c d \dble e4 f8
      g \grA e A \hdble e d \gre b
      \grg a4. \wbirl a4
    }
    \break

    % Part 2

    \repeat volta 2 {
      e8
      A e \grA g A e A
      g \grA e g \dblA A4 e8
      g \grA f g \grA e g e
      \grg d b \grd G \dblG G4
    }
    \alternative {
      {
        e8
        \break
        A e \grA g A e A
        g \grA e g \dblA A4 e8
        g \grA e A \hdble e d \gre b
        \grg a4. \wbirl a4
        \break
      }
      {
        \grd b8
        \grg G \grd a \gre a \grg a8. \taor a8.
        \grg b8 c d \dble e4 f8
        g \grA e A \hdble e d \gre b
        \grg a4. \wbirl a4
      
      }
    }
    \break

    % Part 3

    \repeat volta 2 {
      e8
      \grg G \grd a \gre a \grg b8. \taor a8.
      \grg b8 d \grG d \dble e4.
      \grg G8 \grd G \gre G \grg b e \gra e
      \grg d b \grd G \dblG G4 \grd b8
      \break
      \grg G \grd a \gre a \grg b8. \taor a8.
      \grg b8 d \grG d \dble e4 f8
      g \grA e A \hdble e d \gre b
      \grg a4. \wbirl a4
    }
    \break

    % Part 4

    \repeat volta 2 {
      e8
      A8. \grip A8. e8 \grg d e
      A8. \grip A \hdble e4 f8
      g \grA f g \grA e g e
    }
    \alternative {
      {
        \grg d8b \grd G \dblG G4 e8
        \break
        A8. \grip A8. e8 \grg d e
        A8. \grip A \hdble e4 f8
        g \grA e A \hdble e d \gre b
        \grg a4. \wbirl a4
        \break
      }
      {
        \grg d8 b \grd a \grg G a b
        \grg G \grd a \gre a \grg b8. \taor a8.
        \grg b8 d \grG d \dble e4 f8
        g \grA e A \hdble e d \gre b
        \grg a4. \wbirl a4
      }
    }
    \bar "|."
  }

  \header {
    meter = "Jig"
    title = "The Rakes of Kildare"
    composer = "Traditional"
    arranger = "As played by Duncan Johnstone"
    comment = "Transcribed by Ryan Kavanagh <rak@rak.ac>, 2020-02-09"
  }

}