\version "2.24.1"
\language "english"

\header {
  title = "Valse ecossaise Both sides the Tweed"
}

\paper {
  #(set-paper-size "a4")
 % #(set-paper-size "a4" 'landscape  )
  system-system-spacing = #'((basic-distance . 0.1) (padding . 0))
  ragged-last-bottom = ##f
  ragged-bottom = ##f
}

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

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

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  s2.
  \repeat volta 2 {
    a2.:m a:m f f c a:m
    e e a a f f c 
    g a:m
    
  }
  \alternative {{a2.:m}{a2.:m}}
  \repeat volta 2 {
    f2. f c
    c a:m a:m e e a:m a:m
    f f c g a a 
  }
}

clarinet = \relative c'' {
  \global
 % \transposition bf
  % En avant la musique !
  r4 r8 a b4
    \repeat volta 2 {
    c4. b8 a4 c4. d8 e4 a2. a4. c8 a4 g4. e8 d4 c4. d8 e4
    g,2. e4. a8 b4 c4. b8 a4 c4. d8 e4 a2. a4. c8 a4 g4 e c
    d4 b g a2. 
  }
  \alternative {{a4. a8 b4}{a2 a'4}}
  \break
  \repeat volta 2 {
   a2 a4 a4. g8 e4 g2.
   g4. a8 g4 e4. d8 c4 c4. d8 e4 g,2. e4. a8 b4 c4. b8 a4 c4. d8 e4
   a2. a4. c8 a4 g e c d b g a2. a2.
  }
}

chordsPart = \new ChordNames 
\transpose c d \chordNames

clarinetPart = \new Staff \with {
  instrumentName = "Cl."
  midiInstrument = "clarinet"
} \transpose c d \clarinet

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

}
\score {
  <<
    \chordsPart
    \transpose c c, \clarinetPart
  >>
  \layout { }

}