The <barline> element
Parent elements: <measure> (partwise), <part> (timewise)
If a barline is other than a normal single barline, it should be represented by a <barline> element that describes it. This includes information about repeats and multiple endings, as well as line style. Barline data is on the same level as the other musical data in a score - a child of a measure in a partwise score, or a part in a timewise score. This allows for barlines within measures, as in dotted barlines that subdivide measures in complex meters. The two <fermata> elements allow for fermatas on both sides of the barline (the lower one inverted).
Content
In this order
- <bar-style> (Optional)
-
In this order
- <footnote> (Optional)
- <level> (Optional)
- <wavy-line> (Optional)
- <segno> (Optional)
- <coda> (Optional)
- <fermata> (0 to 2 times)
- <ending> (Optional)
- <repeat> (Optional)
Attributes
Name | Type | Required? | Description |
---|---|---|---|
coda | token | No | Used for playback when there is a <coda> child element. Indicates the end point for a forward jump to a coda sign. If there are multiple jumps, the value of these parameters can be used to name and distinguish them. |
divisions | divisions | No | If the segno or coda attributes are used, the divisions attribute can be used to indicate the number of divisions per quarter note. Otherwise sound and MIDI generating programs may have to recompute this. |
id | ID | No | Specifies an ID that is unique to the entire document. |
location | right-left-middle | No | Barlines have a location attribute to make it easier to process barlines independently of the other musical data in a score. It is often easier to set up measures separately from entering notes. The location attribute must match where the <barline> element occurs within the rest of the musical data in the score. If location is left, it should be the first element in the measure, aside from the <print>, <bookmark>, and <link> elements. If location is right, it should be the last element, again with the possible exception of the <print>, <bookmark>, and <link> elements. The default value is right. |
segno | token | No | Used for playback when there is a <segno> child element. Indicates the end point for a backward jump to a segno sign. If there are multiple jumps, the value of these parameters can be used to name and distinguish them. |
Examples
This element is used in the following examples: