\version "2.18.2"
\language "english"

\header {
  title = "Cercle circassien"
  subsubtitle="Megastive (?) "
  % Supprimer le pied de page par défaut
  tagline = ##f
}

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

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

global = {
  \key c \major
  \numericTimeSignature
  \time 6/8
  \tempo 4=100
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  a2.:m   a2.:m   a2.:m f4. g4.
  a4.:m g a2.:m a4.:m f4. g a:m
  a2.:m g4. f f f g2.
  a2.:m g4. f f g a2.:m
}

flute = \relative c' {
  \global
  \transposition bf
  % En avant la musique !
  e4^\markup {\rounded-box \bold"A"} a8 a4 g8
  e4 e8 d c d
  e4 a8 a4 b8
  c8 a c b g b
  e,4 a8 a4 g8
  e4 e8 d c d
  e8 a b c d c
  b8 c b a4.
  \break
  e'4^\markup {\rounded-box \bold"B"}  e8 e f e
  d8 c b a4 b8
  c8 a a a b c
  d8 b b b c d
  e4 e8 e f e
  d c b a4 b8
  c8 d c b c b
  a4 a8 a4.


}

ticks =\new Staff \with {
  midiInstrument = #"woodblock"
} \relative c'' \repeat unfold 2 {c4 r2}


chordsPart = \new ChordNames {
  \set chordChanges = ##t  %supprime les répétitions des accords
  \chordNames}

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

clarinetPart =  \new Staff \with {
  instrumentName = "Clarinette"
  midiInstrument = "clarinet"
} \transpose c d \flute

\score {
  <<
    \chordsPart
    \clarinetPart
    %\clarinetPart
  >>
  \layout { }
}
