\version "2.2.0"

\header {
  texidoc = "Lead sheet format: chords with melody."
}

harmonies = \chords {
  c4:m f:min7 g:maj c:aug d2:dim b:sus
}

melody = \notes \relative c' {
  f4 e8[ c] d4 g | a2 ~ a2
}

\score {
  \notes <<
    \context ChordNames {
        \set chordChanges = ##t
        \harmonies
    }
    \context Staff = one \melody
  >>

  \paper{ }
  \midi{ }
}
