Apologies if this has been asked before, but I have not found the relevant question.
I am trying to use LilyPond in a LaTeX environment.
From ChatGPT I should be able to use a simple file such as:
\documentclass{article}
\usepackage{lilypond-book}
\begin{document}
\begin{lilypond}
\relative{\time 4/4 \tempo
c'4 d e f g a b c }
\end{lilypond}
\end{document}
But compiling this, using TeXShop I get an error message:
./test.tex:6: LaTeX Error: Environment lilypond undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.6 \begin{lilypond}
?
The lilypond-book executable file is in the same directory as my TeX file.
It may be more appropriate to ask this in the TeX SE, but I guess my chances of an answer may be slightly better here.
\tempo 4=120