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?
Asked
Active
Viewed 740 times
2 Answers
9
Numbers are interpreted as durations. To have them interpreted as lyric words, include them in quote marks. So basically
\addlyrics { "P5" "M3" "m2" "d5" }
1
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.
Rosie F
- 5,192
- 1
- 15
- 28
-
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. – Michael Seifert Feb 16 '21 at 15:40