\version "2.24.4"
\language "english"

\header {
  title = "Scottish Rue des Prés"
  composer = "Stéphane Durand"
  arranger = "CD Tapage - Partage nocturne"
}

\paper {
  % Add space for instrument names
  indent = 23\mm
}

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

global = {
  \key g \major
  \time 4/4
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  \repeat volta 2 { 
  g1 b:m c d g b:m
  c }
  \alternative {
    \volta 1 {d}
    \volta 2 {d1}
  }
  c1 c g g e:m b:m c d
  c1 c g g e:m b:m c d
}

violin = \relative c'' {
  \global
  % En avant la musique.
    \repeat volta 2 { 
    b4 g g8 b a g b4 fs fs8 b b d c4. b8 a g a b b4 a a g8 a b4 g g8 b a g b4 fs fs8 b b d
    c4. b8 a g a b
    }
  \alternative {
    \volta 1 {a2. g8 a}
    \volta 2 {a4. b8 a b c d}
  }
  e8 g e2 d8 c e fs g2 fs8 e d4. e8 d4 b8 d
  g,2. e8 fs g4 g g8 e g a b4 fs fs b8 d c4. b8 a g a b a4. b8 a b c d e g e2 d8 c
  e8 fs g2 fs8 e d4. e8 d4 b8 d g,2. e8 fs g4 g g8 e g a b4 fs fs b8 d c4. b8 a g a b a2. g8 a
}

flute = \relative c'' {
  \global
  % En avant la musique.
    \repeat volta 2 { 
    g4 e8 fs g b c b fs4 c' a8 fs g fs g4. g8 a b c d d4 fs,2 b8 a g4 e8 fs g b c b fs4 c' a8 fs g fs
    g4. g8 a b c d 
    }
  \alternative {
    \volta 1 {d2. b8 a}
    \volta 2 {d2. b8 a}
  }
  c8 d c b a g b a c d e d c b d c b4. c8 b4 g8 fs
  g2. g8 a b4 b d8 b g fs g4 fs d fs8 g e4. g8 a b c d d4. d8 c b a g c8 d c2 b8 a
  c8 d e2  d8 c b4. c8 b4 g8 fs g2. g8 a b4 b d8 b g fs g4 fs d fs8 g e4. g8 a b c d d2. a8 b
}

oboe = \relative c'' {
  \global
  % En avant la musique.
    \repeat volta 2 { 
      b4 g g2 b4 fs fs2 c'4. b8 a g a b b4 a a2 b4 g g2 b4 fs4 fs2
      c'4. b8 a g a b 
    }
  \alternative {
    \volta 1 {a2. r4}
    \volta 2 {a2. r4}
  }
  e'8 g e2. e8 fs g2. d4. e8 d4 d
  g,2. r4 g4 g g8 e g a b4 fs fs2 c'4. b8 a g a b a2. r4
  e'8 g e2. e8 fs g2. d4. e8 d4 d
  g,2. r4 g4 g g8 e g a b4 fs fs2 c'4. b8 a g a b a2. r4 
}

chordsPart = \new ChordNames \chordNames

violinPart = \new Staff \with {
  instrumentName = "Ut1"
  midiInstrument = "violin"
} \violin

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

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

%\transpose c d  
\score {
  <<
  \transpose c d   \chordsPart
  \transpose c d   \violinPart
   % \flutePart
  %  \oboePart
  >>
  \layout { }
}

\score {
  <<
  \transpose c d   \chordsPart
   % \violinPart
   \transpose c d  \flutePart
   % \oboePart
  >>
  \layout { }
}
\markup "melodie simplifiée"
\score {
  <<
   \transpose c d  \chordsPart
   % \violinPart
   % \flutePart
   \transpose c d  \oboePart
  >>
  \layout { }
}

\score {
  <<
  \transpose c d   \chordsPart
   \transpose c d  \violinPart
   \transpose c d  \flutePart
   \transpose c d  \oboePart
  >>
  \layout { }
}



\score {\unfoldRepeats
  <<
    \chordsPart
    \violinPart
    \flutePart
    \oboePart
  >>
  \midi { \tempo 4=160 }
}
\pageBreak
\score { \new ChordGrid 
         \transpose c d
         \chordNames}
