\version "2.24.3"
\language "english"

\header {
  title = "Valse Andalouse"
}

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

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

global = {
  \key a \minor
  \numericTimeSignature
  \time 3/4
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  \repeat volta 2 {  
  a2.:m a:m a:m e:7 e:7 e:7 e:7 a:m
}
\break
\repeat volta 2 { a2.:m f d:m e:7 e e e a:m }
\break
\repeat volta 2 { a2.:m a:m e e e d:m a:m a:m }}

flute = \relative c'' {
  \global
  % En avant la musique.
 \repeat volta 2 { 
 c4 b a c b a c b a gs2.
 d'4 c b d c b d c b c8 e, a b c d } 
 \repeat volta 2 {
 a4 b c d e f a gs f e2.
 b2 c4 d2 e4 c4 b c a2.}
 \repeat volta 2 { 
 c4 b a c b a b4. c8 b a gs2.
 e2. f2 gs4 a4. b8 c b a2.}
 
}

chordsPart = \new ChordNames \chordNames
%
grille = \new ChordGrid \chordNames

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

\score {
  <<
    \chordsPart
    \flutePart
  >>
  \layout { }
}
\score { \grille}
\score { \unfoldRepeats
  <<
    \chordsPart
    \flutePart
  >>
  \midi {
    \tempo 4=120
  }
}