\version "2.19.30"
\language "deutsch"

M = #(define-scheme-function (parser location aFinger aButton) (markup? markup?)
  #{ \markup{ \small \bold \with-color #(rgb-color 0.5 0 0) #aFinger \small \with-color #(rgb-color 0 0 0.5) #aButton } #}
)

global = {
  \time 3/4
  \key f \major
}

melody = \fixed c' {
  \global
  <a, c f>2 <f a>8 g |
}

\score {
\new PianoStaff <<
    \new Lyrics = "buttonsIII" \with {
      \override VerticalAxisGroup.staff-affinity = #DOWN
    }
    \new Lyrics = "buttonsII" \with {
      \override VerticalAxisGroup.staff-affinity = #DOWN
    }
    \new Lyrics = "buttonsI" \with {
      \override VerticalAxisGroup.staff-affinity = #DOWN
    }
    \new Voice = "melody" {
      \melody
    }
    \context Lyrics = "buttonsIII" {
      \lyricsto "melody" {
        \M "3" "B4" _ _
      }
    }
    \context Lyrics = "buttonsII" {
      \lyricsto "melody" {
        \M "2" "B3" \M "" "A5" _
      }
    }
    \context Lyrics = "buttonsI" {
      \lyricsto "melody" {
        \M "1" "B2" \M "" "A4" \M "" "B4"
      }
    }
  >>
}

