\version "2.20.0"
\language "english"

\header {
  title = "Magali valse"
  subtitle ="trad Provence"
  %composer = "Cyrille Brotto"
}

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

global = {
  \key g \major
  \time 3/4
  %\partial 2.
  \tempo 4=100
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
 g2. g g g 
 d d d g
 g g g g 
 g g d d 
 g g g d
 d g d g
   
}

clarinet = \relative c'' {
  \global
  \transposition bf
  % En avant la musique !
  b4 b b b 2 a4 d2 c4 a g fs
  a4 a a a2 b4 c4 b a g2.
  d4 g b d2 e4 d2 c4 b2 b4
  b4 a b d c b a2.( a2. )
  d,4 g b d2 e4 d2 c4 b a b4
  d4 c a g a b d c a b2.
}
  


ticks =\new Staff \with {
  midiInstrument = #"woodblock"
} \relative c' {
 c2. c2.   \repeat volta 3 {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
  }
}
