You are here: MusicXML Reference > Score Schema (XSD) > Elements > Element: lyric

Element: lyric

Description

The lyric type represents text underlays for lyrics, based on Humdrum with support for other formats. 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 2.0 XSD is more strict than the 2.0 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 (as in Finale's verse / chorus / section specification). Justification is center by default; placement is below by default. The content of the elision type is used to specify the symbol used to display the elision. Common values are a no-break space (Unicode 00A0), an underscore (Unicode 005F), or an undertie (Unicode 203F).

Derived By

Type lyric

Attributes
Name  Type  Required?  Default  Description 
number  xs:NMTOKEN  No  The lyric number indicates multiple lines, though a name can be used as well (as in Finale's verse / chorus / section specification).
name  xs:token  No  The lyric number indicates multiple lines, though a name can be used as well (as in Finale's verse / chorus / section specification).
justify  left-center-right  No 
default-x  tenths  No 
default-y  tenths  No 
relative-x  tenths  No 
relative-y  tenths  No 
placement  above-below  No 
color  color  No 
print-object  yes-no  No 
Content Model

Contains elements as defined in the following table.

Component  Type  Occurs  Default  Description 
  1..1 
  1..1 
extend  extend  1..1 

The extend type represents lyric word extension / melisma lines as well as figured bass extensions.

humming  empty  1..1  The humming element is taken from Humdrum.
laughing  empty  1..1  The laughing element is taken from Humdrum.
  1..1 
syllabic  syllabic  0..1  Lyric hyphenation is indicated by the syllabic type. The single, begin, end, and middle values represent single-syllable words, word-beginning syllables, word-ending syllables, and mid-word syllables, respectively.
text  text-element-data  1..1 

  0..* 
  0..1 
elision  text-font-color  1..1 

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 2.0 XSD is more strict than the 2.0 DTD in enforcing this by disallowing a second syllabic element unless preceded by an elision element.

syllabic  syllabic  0..1  Lyric hyphenation is indicated by the syllabic type. The single, begin, end, and middle values represent single-syllable words, word-beginning syllables, word-ending syllables, and mid-word syllables, respectively.
text  text-element-data  1..1 

extend  extend  0..1 

The extend type represents lyric word extension / melisma lines as well as figured bass extensions.

end-line  empty  0..1  The end-line element comes from RP-017 for Standard MIDI File Lyric meta-events. It facilitates lyric display for Karaoke and similar applications.
end-paragraph  empty  0..1  The end-paragraph element comes from RP-017 for Standard MIDI File Lyric meta-events. It facilitates lyric display for Karaoke and similar applications.
  0..1 
footnote  formatted-text  1..1  The footnote element specifies editorial information that appears in footnotes in the printed score. It is defined within a group due to its multiple uses within the MusicXML schema.
  0..1 
level  level  1..1  The level type is used to specify editorial information for different MusicXML elements.
Referenced By
Example

      <note default-x="80">
        <pitch>
          <step>F</step>
          <octave>4</octave>
        </pitch>
        <duration>1</duration>
        <voice>1</voice>
        <type>eighth</type>
        <stem default-y="15">up</stem>
        <beam number="1">begin</beam>
        <lyric default-y="-73" name="verse" number="1">
          <syllabic>single</syllabic>
          <text>I</text>
        </lyric>

      </note>
      <note default-x="113">
        <pitch>
          <step>C</step>
          <octave>5</octave>
        </pitch>
        <duration>1</duration>
        <voice>1</voice>
        <type>eighth</type>
        <stem default-y="15">up</stem>
        <beam number="1">continue</beam>
        <lyric default-y="-73" name="verse" number="1">
          <syllabic>single</syllabic>
          <text>will</text>
        </lyric>

      </note>

Definition

See note

 

MusicXML Documentation Home
Last built 2/20/2015

7007 Winchester Circle, Suite 140

Boulder, CO 80301