I'm trying to write intervals underneath notes in LilyPond. Just something simple like: P5, M3, m2, d5. I thought the lyrics environment would work, but it ignores the numbers. Is there a way to escape the numbers so they are included as text in the lyrics? I tried P\5 but that doesn't work. Or maybe there is a better way to do this?

2 Answers 2


Numbers are interpreted as durations. To have them interpreted as lyric words, include them in quote marks. So basically

\addlyrics { "P5" "M3" "m2" "d5" }

Perhaps insert them as you would insert text markups on notes, e.g. change c4 to c4_\markup{P5}. Or c4^\markup{P5} if you want the markup to appear above the note.

  • A reasonable approach (+1). However, note that the markups for different notes wouldn't necessarily be vertically aligned under this approach, which may or may not be a problem. Feb 16, 2021 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.