Render LaTeX with LilyPond - Embed LilyPond in a LaTeX and save the file with a .lytex extension.
\documentclass{article}
\usepackage{lilypond}
\begin{document}
Here’s a simple melody:
\begin{lilypond}
\relative c' { c d e f g a b c }
\end{lilypond}
\end{document}