\version "2.24.0"
\language "english"

\header {
  title = "Kolo de Srem"
  subtitle = "Danse Serbe"
  subsubtitle=""
  composer = ""
  poet = "Ut"
  tagline = "Lilypond + Frescobaldi"
}

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

global = {
  \key g \major
  \numericTimeSignature
  \time 2/4
  \tempo 4=130
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
   % \transposition bf
  % En avant la musique !
  \repeat volta 2 {
    g4 g g g g g d d d d d d d d g g 
  }
  \repeat volta 2 {
    c c c c g g g g d d d d 
  }
  \alternative {
    {g d g g }
    {g d g g }
  }
  
}

clarinet = \relative c'' {
  \global
 % \transposition bf
  % En avant la musique !
  \repeat volta 2 {
    g4. b8
    d4 b
    d8 d d b
    c4 a
    a4. b8 
    c4 a
    d8 d d c
    b4 g
  }
  \break
  \repeat volta 2 {
    e'4. d8
    c4 e
    d4. c8
    b4 d
    c4. b8 
    a4 d8 c
  }
  \alternative {
    {b4 c d8 b c d}
    {b4 a g2}
  }
  
}

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


chordsPart = \new ChordNames 
\chordNames

clarinetPart = \new Staff \with {
  instrumentName = "Ut"
  midiInstrument = "oboe"
} \clarinet


\score {
  <<
   %\transpose c d 
   \chordsPart
  % \transpose c d 
   \clarinetPart
  >>
  \layout { }
  
}

\score {

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


