MusicXML 4.1 Draft
MusicXML 4.1 Draft > MusicXML Reference > Elements > The <lyric> element

The <lyric> element

Parent element: <note>

lyric

The lyric type represents text underlays for lyrics. Two text elements that are not separated by an elision element are part of the same syllable, but may have different text formatting. The MusicXML XSD is more strict than the DTD in enforcing this by disallowing a second syllabic element unless preceded by an elision element. The lyric number indicates multiple lines, though a name can be used as well. Common name examples are verse and chorus.

Justification is center by default; placement is below by default. Vertical alignment is to the baseline of the text and horizontal alignment matches justification. The print-object attribute can override a note’s print-lyric attribute in cases where only some lyrics on a note are printed, as when lyrics for later verses are printed in a block of text rather than with each note. The time-only attribute precisely specifies which lyrics are to be sung which time through a repeated section.

Content

In this order

Attributes

Name Type Required? Description
color color No
default-x tenths No
default-y tenths No
id xs:ID No
justify left-center-right No
name xs:token No
number xs:NMTOKEN No
placement above-below No
print-object yes-no No
relative-x tenths No
relative-y tenths No
time-only time-only No

Examples

This element is used in the following examples:

<assess> and <player><elision><end-line><end-paragraph><extend> (Lyric)<humming><ipa><laughing><lyric><syllabic>Tutorial: Après un rêve