\version "2.20.0" 
\language "english"


\header {
  title = "L‘élan"
  subtitle = "Chapeloise"
  subsubtitle = "CD «Vos pieds ont des oreilles»"
  composer = "Philippe Plard"
  meter = "138"
    % Supprimer le pied de page par défaut
  tagline = ##f
}

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

global = {
  \key c \major
  \numericTimeSignature
  \time 2/4
 \tempo 4=40
}

chordNames = \chordmode {
  \global
  \repeat volta2 {
  a2:m 
  a2:m
  f2
  f2
  \break
  d2:m
  d2:m
  f2
  }
  \alternative {{e2}{e2} } 
  \break
  \repeat volta2 {
  f2
  g2
  c2
  a2:m
\break
  f2
  g2
  }
  \alternative {
    {c2 g2}
    {e2 e2} 
  } 
}

clarinet = \relative c'' {
  \global 
  %\transposition bf
  \repeat volta2 {
  c16 ^\markup {\rounded-box \bold"A"} d c b a8 gs8
a8 b c a
c16 d c b a8 gs8
a8 b f4
c'16 d c b a8 gs8
a8 b c a
c16 d c b a8 c8
  }
  \alternative {
    {e8 e16 e e8 e }
    {<e b>4 <e b>4} }
  \repeat volta2 {
  f8.^ \markup {\rounded-box \bold"B"} e16 d8 c
  b8 c d b
  e8. d16 c8 b
  a8 b c e
  f8. e16 d8 c
  b8 c d b
  }
  \alternative {
    {e8 g, c e
     d g, b d }
    { \tuplet 3/2  {<e b>4 <e b>4 <e b>4}
      \tuplet 3/2 { <e b>4 <e b>4 <e b>4 }
    }
   }
}

ticks =\new Staff \with {
  midiInstrument = #"woodblock"
} \relative c' {
 c2 c2   \repeat volta 4 {c4}
}


chordsPart = \new ChordNames 
%\transpose c d 
\chordNames

clarinetPart = \new Staff \with {
  instrumentName = "Cl."
  midiInstrument = "clarinet"
} %\transpose c d 
\clarinet

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

\score {

  \unfoldRepeats {
  \ticks
  <<
    \chordsPart
    \clarinetPart
  >>
        }
  \midi { %\tempo 4 = 50
  }
}
