\version "2.24.3"
\language "english"

\header {
  title = "Branlou -502"
  copyright = "502 Cercle Occitan du Lot et Garonne"
  poet="Ut"
}

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

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

global = {
  \key g \major
  \numericTimeSignature
  \time 6/8
  \tempo 4=120
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  \repeat volta 2 { g2. d g d }
  \break
  \repeat volta 2 {g2. d4. g g2. d4. g  }
  
}

oboe = \relative c'' {
  \global
  % En avant la musique.
  \repeat volta 2 { g4 a8 b c b a b a g4 d8 g4 a8 b c c a b a g4. }
  \repeat volta 2 { d'4 e8 d4. c8 b a b4 g8 d'4 e8 d4. c8 b a g4.  }
}

chordsPart = \new ChordNames \chordNames

oboePart = \new Staff \with {
  instrumentName = "Htb."
  midiInstrument = "oboe"
} \oboe

\score {
  <<
    \chordsPart
    \oboePart
  >>
  \layout { }
}
\score {\unfoldRepeats
  <<
    \chordsPart
    \oboePart
  >>
  \midi { }
}