lilypond can color notes in a arbitrary way using
\override NoteHead #'color = #red c
with the default color is black. But I like to color all notes by pitch, so that my kids can more easily learn to recognize the notes as the c, d, e, f, … are associated with its own color. The above allows me to do this, but is rather verbose.
Is there a shortcut, macros of some sort, that allow me to do something along the lines of:
redc greend bluee
or even overwriting the default colors for each note by pitch so that I can even simply do:
c d e
and have each of them have a different color?
There is an example for this in the snippets: