\version "2.24.1"
\language "english"

\header {
  title = "L‘inconnu de Limoise - Mazurka - MTM"
  composer = "Maxou Heintzen"
}

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

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

global = {
  \key c \major
  \numericTimeSignature
  \time 9/8
  \partial 2
    \tempo "110 - 120"
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  s2
  c4. c g4. a a f f f g g g g
  c4. c g a a a f f f g g g 
  \repeat volta 2 { 
  f4. f f c c c a a a e e e 
  f f f f f f g g g  }
  \alternative {{ g g g  }{c c }}
}

clarinet = \relative c'' {
  \global
 % \transposition bf
  % En avant la musique.
  g8 c4 d8 
  e4.( e4) c8 f4 d8  e4.( e4) e8 f4 g8 
  f4.(f4) e8 d4 c8 g4.( g4) g8 c4 d8
  e4.( e4) c8 f4 d8  e4.( e4) e8 f4 g8 
  f4.(f4) e8 d4 c8 d4.( d4) e8 f4 g8
  \break
  \repeat volta 2 { 
  a4. c4 b8 a4 b8 g4.( g4) f8 e4 d8 
  c4 b8 c4 d8 e4 c8  g2. c4 b8
  \break
  a4.( a4) b8 c4 d8 c4. b4. a4. b4.( b4) c8 d4 e8
  }
  \alternative {{
  d4.( d4) e8 f4 g8              }{
  c,4.( 4)}}
  
  
}

chordsPart = \new ChordNames \chordNames

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

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

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

  \midi {
    \tempo 4=110
  }
}