\version "2.24.0"
\language "english"

\header {
  title = "Tzadir katamar"
  subtitle = "Danse des palmiers"
  % Supprimer le pied de page par défaut
  tagline = ##f
  poet = "UT "
}

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

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

global = {
  \key c \major
  \numericTimeSignature
  \time 2/4
  \partial 4
  %\tempo 4=90
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  r4
  \repeat volta 2 {a2:m e a:m
  }
  \alternative {{e}{a:7} }
  \repeat volta 2 {d:m g c f4:7 b:7 e2:7 e:7}
    \alternative {{a:m a:7}{a:m a:m} }
}

clarinet = \relative c'' {
  \global
 % \transposition bf
  % En avant la musique !
  r8 e,8
    \repeat volta 2 {
      a8( a16 b c8) a
      gs( a b) e,
      a8( a16 b c8) a
    }
      \alternative {{e'4( e8) e,}{e'4 r8 e} }
  \break
  \repeat volta 2 {f8( f f e d c b) d
  e( e  e d c b a) d
  b( a b gs b e, gs b)}
    \alternative {{e4( e e  e8) e }{a,2 r2} }
}

chordsPart = \new ChordNames {
  \set chordChanges = ##t
  \chordNames}

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

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

  \midi {\tempo 4 = 90}
}


