\documentclass{article}
\begin{document}
Lilypond included in a \LaTeX document.
\begin[fragment,relative=2]{lilypond}
\key c \minor c4 e d2
\end{lilypond}
\end{document}
