music21: displaying lyrics on rests

Viewed 202

I want to write lyrics on music21 on both notes and rests (to show different metrical levels). I need both objects having a similar layout, but notes' lyrics position is different that rests'.

Even more, some environments like lilypond don't even support lyrics on rests. I'm ok with that but I need some way to get a nice display for those lyrics.

As a reference, I'm trying to make an example like this one in the user guide Example from chapter 55 of user's guide

But if we look at the rest on measure 5, the lyric is displayed a little lower than the others. That's what I'm trying to fix.

1 Answers

You can use TextBox to display lyrics in locations that you can't otherwise put them.

Related