Insert colored music notes in text

music

In text I want to insert colored music notes. I tried with Lilyglyphs package (see below), but it seems not possible. In Lilyglyphs, notes are precompiled pdf which are simply inserted. Is there any other package who can insert music notes inside the text?

\documentclass{report}

\usepackage{lilyglyphs}
\usepackage{color}

\begin{document}

  \textcolor{red}{Test of \quaver}.

\end{document}

Test of lilyglyphs

Best Answer

The notes are quite common in unicode text fonts, although for some reason the default latin modern has quaver but not crotchet, I picked a Garamond clone here Use with lualatex or xelatex

enter image description here

\documentclass{article}
\usepackage{xcolor}
\usepackage{fontspec}
\setmainfont{Garamond Libre}

\begin{document}

\textcolor{red}{a red quaver ♪ and a crotchet ♩}

\end{document}
Related Question