\version "2.24.3"
\language "english"

\header {
  title = "Valse des Roses (Alsace - MTM)"
}

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

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

global = {
  \key c \major
  \numericTimeSignature
  \time 3/4
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  \repeat volta 2 {
    c2. c c c f f g c  
  }
   \repeat volta 2 {
   c2. f c f f  f g c 
   }
}

flute = \relative c'' {
  \global
  % En avant la musique.
    \repeat volta 2 {
    c2 g4 e4. f8 g4 c2 g4 e4. f8 g4 a2 g4
    f2 e4 d2. c2.}
   \repeat volta 2 {
   e4. f8 g4 a2 g4 e4. f8 g4
   a2 g4 a2 g4 f2 e4 d2. c2.}
}

chordsPart = \new ChordNames \chordNames

flutePart = \new Staff \with {
  instrumentName = "Ut"
  midiInstrument = "flute"
} \flute


\markup "en Do majeur"
\score {
  <<
   \chordsPart
    \flutePart
  >>
  \layout { }
}
\markup "en Sol majeur"
\score {
  <<
  \transpose c g   \chordsPart
  \transpose c g    \flutePart
  >>
  \layout { }
}




\score {\unfoldRepeats
        {
  <<
    \chordsPart
    \flutePart
  >>
        
  <<
   \transpose c g   \chordsPart
  \transpose c g    \flutePart
  >>
        }       
        
  \midi {   \tempo 4=160  }
}