\version "2.22.2"
\language "english"

\header {
  title = "Les Ormeaux"
  subtitle = "Mazurka"
  composer = "Simonnin Restoin"
}

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

global = {
  \key a \minor
  \numericTimeSignature
  \time 9/8
  \partial 2
  \tempo 4=100
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  s2 
  \repeat volta 2 {a1:m s8 d1 s8  a1:m s8 b2.:7 e4:7 s8
  a1:m s8 d1:m s8 g1 s8 }
  \alternative {{ c2. e4.:7}{c4. d4. e4.}
}
\repeat volta 2{
f1 s8 f1 s8 e1:m s8 e1:m s8 
d1:m s8 g1 s8 g1 s8}
\alternative {{ c1 s8}{e1:7 s8}}
}
clarinet = \relative c' {
  \global
  \transposition bf
  % En avant la musique !
  \partial 2 { e8 fs4 gs8 }
  \repeat volta 2 {
    a4.~a4 b8 c4 e8
    d4 r8 r4 d8 e4 d8
    c4. c4 b8 c4 d8
    b4. fs4. gs4. |
    a4.~ a4 b8 c4 e8 g4 r8 r4 f8 g4 a8 
    e4. d4 c8 d4 f8
    }
  \alternative {{
   e8 f e d e d c4 b8 }{
   e4. f4. g4.}}
  \break
  \repeat volta 2 { 
     a4  c,8 c4 a'8 b4 c8 a4 c,8 c4 a'8 b4 c8
     g4. b,4 g'8 fs4 a8 g4.~ g4 g8 e4 g8
     f4.~ f4 g8 a4 f8 e4. d4 r8 r4 c8
     b4. c4. d4.}
     \alternative {{ e4. f4. g4.}{
       gs,4. a4. b4.}}

}
chordsPart = \new ChordNames \chordNames

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

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

  \midi { }
}