I would like to add a footnote at the bottom of a score, something like The F note in measure 29 is sometimes sung as G instead.
However, the score is often transposed to a different key, so I don't want to "hard-code" the note name in the footnote. I would like it to be transposed to the correct key. For example, in this case the score is written in Ab, but it is transposed to Eb, so the footnote should read The C note in measure 29 is sometimes sung as D instead. Is there a simple way to do this with LilyPond? The NoteNames context controls printing of note names, but I don't really want to print it, I just want to pass it as a string in markup.