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

The <ending> element

Parent element: <barline>

ending

The ending type represents multiple (e.g. first and second) endings. Typically, the start type is associated with the left barline of the first measure in an ending. The stop and discontinue types are associated with the right barline of the last measure in an ending. Stop is used when the ending mark concludes with a downward jog, as is typical for first endings. Discontinue is used when there is no downward jog, as is typical for second endings that do not conclude a piece. The length of the jog can be specified using the end-length attribute. The text-x and text-y attributes are offsets that specify where the baseline of the start of the ending text appears, relative to the start of the ending line.

The number attribute indicates which times the ending is played, similar to the time-only attribute used by other elements. While this often represents the numeric values for what is under the ending line, it can also indicate whether an ending is played during a larger dal segno or da capo repeat. Single endings such as “1” or comma-separated multiple endings such as “1,2” may be used. The ending element text is used when the text displayed in the ending is different than what appears in the number attribute. The print-object attribute is used to indicate when an ending is present but not printed, as is often the case for many parts in a full score.

Content

xs:string

Attributes

Name Type Required? Description
color color No
default-x tenths No
default-y tenths No
end-length tenths No
font-family font-family No
font-size font-size No
font-style font-style No
font-weight font-weight No
number ending-number Yes
print-object yes-no No
relative-x tenths No
relative-y tenths No
system system-relation No
text-x tenths No
text-y tenths No
type start-stop-discontinue Yes

Examples

This element is used in the following example:

<ending>