\version "2.24.3"
\language "english"

\header {
  title = "Rondeau de SAMATAN"
  subsubtitle = "Transcription Claire Goujon"
   poet = "Bb"
}

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

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

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

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  \repeat volta 2 { 
   g4 c d:7 g g d d:7 g }
     \break
  \repeat volta 2 { 
  g4 c d d g d d g}
  
}

flute = \relative c'' {
  \global
  % En avant la musique.
  \bar".|:"
   \repeat volta 2 {
  g8 a16 b a8 g fs a a g g a16 b a8 g fs8 a g4 }
   \break
  \repeat volta 2 {
  g8 a16 b a8 d d c16 b a8 a g8 a16 b16 a8 d8 d4 a}
}

chordsPart = \new ChordNames \chordNames

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


\score {
  <<
    \transpose c d \chordsPart
    \transpose c d \flutePart
  >>
  \layout { }
}
\score { \new ChordGrid 
         \transpose c d  \chordNames }
\score {
  <<
    \transpose c d \chordsPart
    \transpose c d, \flutePart
  >>
  \layout { }
}
%{
\score {\unfoldRepeats
  <<
    \chordsPart
    \flutePart
  >>
  \midi {  \tempo 4=100  }
} %}