\version "2.24.1"
\language "english"

\header {
  title = "AMAZONE"
  subsubtitle = "Rondeau"
  composer = "Cyrille Brotto"
}

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

\layout {
  \context {
    \Voice
    \consists "Melody_engraver"
    \override Stem. #'neutral-direction = #'()
  }
}

global = {
  \key a \minor
  \numericTimeSignature
  \time 6/8
  \tempo 4=180
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  
  \repeat volta 2 {a2. f d e a f d r }
  \repeat volta 2 { a4 g f d2. e a a4 g f d2. e a } 
}

clarinet = \relative c'' {
  \global
 % \transposition bf
  % En avant la musique !
   \repeat volta 2 {
     e4 e8 e d c c4 c8 c d e f e d e d c d4 b2
   e4 e8 e d c c4 c8 c d e f e d e d c <d b g>2.
   }
   \repeat volta 2 {
     a4^"3-4" b c d2. e8 g e d c b c4 a2 
     a4 b c d2. e8 g e d c b  <a e>2.    
   } 
}

chordsPart = \new ChordNames \chordNames

clarinetPart = \new Staff \with {
  instrumentName = "Cl."
  midiInstrument = "clarinet"
} \clarinet

\score {
  <<
    \chordsPart
    \clarinetPart
  >>
  \layout { }

}
\score { \unfoldRepeats 
  <<
    \chordsPart
    \clarinetPart
  >>
  \midi {\tempo 4 = 180 }

}
