\version "2.24.0"
\pointAndClickOff

cresc = \markup \italic "cresc."
dim = \markup \italic "dim."
%mbreak = {\break}
mbreak = {}

first = \set Timing.measurePosition = #(ly:make-moment 5/8)
last = \set Timing.measurePosition = #(ly:make-moment 1/8)

part =
\transpose ees g {
\relative {
  \key ees \major
  \time 6/8
  \tempo "Adagio"
  \repeat volta 2 {
    \first g'8 |
    c4 c8 ees4 ees8 |
    \appoggiatura ees16 d8 d16 c b d c4 d8 |
    ees 4 f8 g4 aes8 |
    d,4 ees8 d4 d8 |
    ees4 ees8 f4 f8 |
    \mbreak
    \appoggiatura ees16 d8 d16 ees f g aes4 aes8 |
    g4 f8 ees4 d8 |
    \last f4. ees4 |
  }
  \repeat volta 2 {
    \first g8 |
    g4 f8 e4 g8 |
    c,4 c8 c4 c8 |
    \mbreak
    aes'4 g8 f4 ees8 |
    d4 ees8 d4 g,8 |
    c4 c8 ees4 ees8 |
    \appoggiatura ees16 d8 d16 c b d c4 d8 |
    ees4 e8 f4 fis8 |
    \last g4 b,8 c4 |
  }
  \mbreak
  \key c \major
  \repeat volta 2 {
    \first g8 |
    e'4. d8 f b, |
    c e g g4 g8 |
    g fis f e d c |
    e4. d8 r d |
    c'16 b a g fis e d4 c8 |
    \mbreak
    b c cis d4 e8 |
    d b g c a fis |
    \last a4. g8 r |
  }
  \repeat volta 2 {
  \first g8 |
  f'16 e d c b c d4 r8 |
  r4 r8 r4 g,8 |
  \mbreak
  f'16 e d c b c d4 d8 |
  e4 \appoggiatura g16 f8 d4 g,8 |
  e'4. d8 f b, |
  c e g f c' a |
  g e c f d b |
  \last d4. c4 |
  }
  \mbreak
  \key ees \major
  \mark \markup \bold "(Coda.)"
  \first g8 |
  c4 c8 ees4 ees8 |
  \appoggiatura ees16 d8 d16 c b d c4 d8 |
  ees4 e8 f4 aes8 |
  g4 bes8 <aes c, f,>4 \fermata c,8 |
  f4 f8 aes4 aes8 |
  \appoggiatura aes16 g8 g16 f e g f4 aes8 |
  c,4 c8 d4 b8 |
  \mbreak
  c4 r8 g'4 f8 |
  ees4 r8 d f b, |
  c4 r8 g'4 f8 |
  ees4 r8 d f b, |
  c4 r8 <g b,>4 r8 |
  \last <g c,>4 r8 r4 \fermata \bar "|." |
}
}

\paper {
  indent = 0 \cm
  page-count = 1
}

\book {
  \header {
    title = "Sonatina"
    composer = "Ludwig van Beethoven (1770-1827)"
    instrument = \markup{Clarinet in B\flat}
    tagline = ""
  }
  \score {
    \new Staff {
      \set Staff.midiInstrument = #"clarinet"
      \part
    }
    \layout{}
    \midi{\tempo 4 = 80 }
  }
}