\paper {
  oddFooterMarkup = \markup {
    \fill-line { \line {
      \italic \fromproperty #'header:title
      " - Page "
      \fromproperty #'page:page-number-string
      " of 2"
    } }
  }
  evenFooterMarkup = \oddFooterMarkup
}
%#(set-global-staff-size 17)

\include "english.ly"
\header{
  title = "Petit Riens"
  subtitle = \markup \italic "For 3 people in a line"
  poet = "Ambrosio (Guglielmo), 1475"
  meter = "AAB; play 3 dances"
  composer = "arr. Monica Cellio"
  tagline = ""
}

global= {
  \key c \major
  \time 6/8
}

chordLine = \chordmode {
  \set chordChanges = ##t
  g4. g | c f | g g | c g | g g | c f | g g | d g
  \repeat unfold 3 { c c | c g | g g | c g | }
  \repeat unfold 3 { g d:m | g g } 
  \repeat unfold 3 { g g | g8 f4 g4. | } 
  | c c | c g | g g | c g
  | g d:m | g g
  | g g | g8 d4 g
}

cantusMusic = \relative c' {
  \repeat volta 2 { g'8^\markup{\box "A"} a b g a b | c4 b8 a4 g8 | d'4 d8 d4 d8 | e4 d16 c b4. | 
  g8 a b g a b | c4 b8 a4 g8 | d'8 d16 d d8 d c b | a4. g4. } 

  c4^\markup{\box "B"} c8 c4 c8 | c4 c8 b4. |
  d4 d8 d4 d8 | e4 e8 d4. | 
  \repeat unfold 2 { c4 c8 c4 c8 | c4 c8 b4. |
  d4 d8 d4 d8 | e4 e8 d4. | } \bar "||" \break

  \repeat unfold 3 { g4 g8 f4 a8 | g4 fs16 e d4. } \bar "||" \break

  \repeat unfold 3 { d4 d8 d4 c8 | b8 a4 g4. } \bar "||" \break

  c4 c8 c4 c8 | c4 c8 b4. |
  d4 d8 d4 d8 | e4 e8 d4. | 

  g4 g8 f4 a8 | g4 fs16 e d4. |

  d4 d8 d4 c8 | b8 a4 g4. \bar "|." 
}

altusMusic = \relative c' {
  \repeat volta 2 { d4 b8 d4 b8 | g'4 d8 c4 b8 | g8 a b g a b c4 b8 d4. | d4 g8 d4 g8 | g4 b,8 c4 e8 | g,4 b8 g4 d'8 | d4. d4. }

  % B1 
  g2. | g4. d4. | b2. | g4. b4. | 
  % B2
  g'4 e8 g4 e8 | g4 e8 d4. | b4 d8 b4 d8 | g4 g8 g4. |
  % B3
  g8 f e g f e | g f e d4 b8 | b c d b c d | g f e b4 d8 |

  % C
  d4. a4. | d4. g4. | d4 d8 a'4 f8 | d4 d8 b4 d8 | g,8 a b a4 d8 | d c d g4 d8

  % D
  b4. b4 g8 | g8 c4 d4. | b4 d8 b4 g8 | g8 c4 d b8 | b c d b c e | g, a c b4 d8 

  % E
  g4 e8 g4 e8 | g4 e8 d4. | b8 c d b c d | g f e b4 d8 |
  d4 d8 a4 f'8 | d4 d8 b4 d8 | b8 c d b c e | g,8 fs4 g4. 

}

bassusMusic = \relative c' {
  \repeat volta 2 { g4 g8 g4 g8 | c,4 d8 f4 g8 | g4. g4. | c,4 g'8 g4.  |
  g4 b8 g4 b8 | c4 g8 f4 c8  | g'4. g | fs g }

  % B1
  c2. | c4. g4. | g2. | c4. g4.  | 
  % B2
  c4. c4. | c4. g4. | g4. g4. | c4. g4. | 
  % B3
  c4 a8 c4 a8  | c4 e,8 g4. | g4 b8 g4 b8 | c4 g8 g4. 

  % C
  g4. d4. | b'4. g4. | g4. d4. | g4. g4. | g4 g8 d4 d8 | g4 d'8 g,4 g8 

  % D
  g4. g4 c8 | d f,4 g4. | g4. g4 c8 | 
  d f,4 g4. | g4 g8 g4 c8 | d8 f,4 g4 g8 | 

  % E
  c4. c | c g | g4 b8 g4 b8 | c4 g8 g4. | 
  g d | g g | g4 g8 g4 c8 | b8 d,4 d'4.

}

\score {
  \context ChoirStaff <<
    \context ChordNames = chordcontext << \global \chordLine >>
    \context Staff = cantusStaff <<
      \context Voice = cantus {
	<< \global \cantusMusic >> 
      }
    >>

    \context Staff = altusStaff <<

      \context Voice = altus { 
	<< \global \altusMusic >> 
      }
    >>

    \context Staff = tenorStaff <<

      \context Voice = tenor { 
	<< \global \clef "G_8" \altusMusic >> 
      }
    >>

    \context Staff = bassusStaff << 
      \context Voice = bassus { 
	<< \global \clef bass \bassusMusic >>
      }
    >>

  >>

  \midi {
    \context {
      \Score
      tempoWholesPerMinute = #(ly:make-moment 180 4)
    }
  }


  \layout { 
    indent = 0\mm
  }
}


\version "2.10.10"  % necessary for upgrading to future LilyPond versions.
