Attaching instructions to a lyric #455
Replies: 2 comments
-
I'm interested in the answer here as well (and I'm reasonably sure there isn't a good answer yet, beyond "just treat it as plain text"). The second system in this screenshot is a somewhat related example, though this is spoken words as opposed to instructions: Spoken lyrics like this are perhaps an even different thing (lyrics that are not attached to a specific note in the music), but the similarity is it's "lyric-adjacent" content that's intended to be rendered in the lyrics area of the notation. |
Beta Was this translation helpful? Give feedback.
-
This has been brought up in issue #57 with a verse-number specific version at #7. Those are both still open issues. This gets into an area of semantics vs appearance that may better be addressed by MNX rather than MusicXML. But if someone comes up with a design proposal that integrates well with MusicXML 4.0, we could certainly consider that for a future version. |
Beta Was this translation helpful? Give feedback.
-
Is there any way in MusicXML to add instructions to a lyric element (or a line of lyrics)?
The song we need to encode has two choruses – the first chorus is used for verses 1–3, and the second chorus for verse 4. The format is compact (from a hymnal). We have a note above the second chorus indicating to the singer when the second chorus should be used. Here's a screenshot from a PDF exported from Finale:

Right now, we're attaching the instructions (
<direction>
element in MusicXML) to the measure, and manually adjusting the vertical positioning of the instructions and lyrics so that the instructions appear in the right place.Strict MusicXML renderers may be able to vertically position each text element the same as the source; however, the renderers we're using discard strict positioning in favor of defaults that adjust better for different screen sizes (which is a feature we rely on for our use cases). In the end, it looks something like this:
If there were a way to attach the instructions to a lyric, instead of generically attaching them to a measure, renderers that make their own layout decisions may be able to render instructions like this more cleanly. Any ideas?
For reference, here are the PDF and MusicXML version of the sheet music:
https://media.ldscdn.org/pdf/music/hymns/2001-01-2580-o-thou-rock-of-our-salvation-eng.pdf
2001-01-2580-o-thou-rock-of-our-salvation-eng.musicxml.zip
Beta Was this translation helpful? Give feedback.
All reactions