Given that NoteNames are really a type of lyrics, is it possible to have a function that just takes music and returns a text string that is a lyric.
For example:
music = \relative c' { c4 d e f g a b c }
notenameLyric = \NoteNameToLyric \music
would make
notenameLyric = "c d e f g a b c"
so that we can write
\newLyric \lyricmode \notenameLyric
I understand that such a function would probably map the music and extract the 'text from it and concatenate it to get the result. Not yet successful in getting it to work.