<barLine>

<barLine> Vertical line drawn through one or more staves that divides musical notation into metrical units.
Module MEI.shared
Attributes
@barplace (optional) Records the location of a bar line. Value conforms to data.BARPLACE . att.barplacement
@color (optional) Used to indicate visual appearance. Do not confuse this with the musical term 'color' as used in pre-CMN notation. Value conforms to data.COLOR . att.color
@control (optional) Indicates whether or not a bar line is "controlling"; that is, if it indicates a point of alignment across all the parts. Bar lines within a score are usually controlling; that is, they "line up". Bar lines within parts may or may not be controlling. When applied to <measure>, this attribute indicates the nature of the right barline but not the left. Value conforms to data.BOOLEAN . att.meterconformance.bar
@copyof (optional) Points to an element of which the current element is a copy. Value conforms to data.URI . att.common.anl
@corresp (optional) Used to point to other elements that correspond to this one in a generic fashion. One or more values from data.URI , separated by spaces. att.common.anl
@evaluate (optional) Specifies the intended meaning when a participant in a relationship is itself a pointer. Allowed values are: " all" (If an element pointed to is itself a pointer, then the target of that pointer will be taken, and so on, until an element is found which is not a pointer.) , " one" (If an element pointed to is itself a pointer, then its target (whether a pointer or not) is taken as the target of this pointer.) , " none" (No further evaluation of targets is carried out beyond that needed to find the element(s) specified in plist or target attribute.) att.targeteval
@facs (optional) Permits the current element to reference a facsimile surface or image zone which corresponds to it. One or more values from data.URI , separated by spaces. att.facsimile
@form (optional) Records the appearance and usually the function of the bar line. Value conforms to data.BARRENDITION . att.barLine.log
@label (optional) Provides a name or label for an element. The value may be any string. Value of datatype string. att.commonPart
@metcon (optional) Indicates the relationship between the content of a measure and the prevailing meter. Value conforms to data.BOOLEAN . att.meterconformance.bar
@n (optional) Provides a number-like designation for an element. Value conforms to token . att.common
@next (optional) Used to point to the next event(s) in a user-defined collection. One or more values from data.URI , separated by spaces. att.common.anl
@prev (optional) Points to the previous event(s) in a user-defined collection. One or more values from data.URI , separated by spaces. att.common.anl
@sameas (optional) Points to an element that is the same as the current element but is not a literal copy of the current element. One or more values from data.URI , separated by spaces. att.common.anl
@synch (optional) Points to elements that are synchronous with the current element. One or more values from data.URI , separated by spaces. att.common.anl
@taktplace (optional) If takt bar lines are to be used, then the taktplace attribute may be used to denote the staff location of the shortened bar line. The location may include staff lines, spaces, and the spaces directly above and below the staff. The value ranges between 0 (just below the staff) to 2 * number of staff lines (directly above the staff). For example, on a 5-line staff the lines would be numbered 1,3,5,7, and 9 while the spaces would be numbered 0,2,4,6,8,10. For example, a value of '9' puts the bar line through the top line of a 5-line staff. Value conforms to data.STAFFLOC . att.barplacement
@target (optional) Allows the use of one or more previously-undeclared URIs to identify passive participants in a relationship; that is, the entities pointed "to". One or more values from data.URI , separated by spaces. att.pointing
@targettype (optional) Characterization of target resource(s) using any convenient classification scheme or typology. Value of datatype NMTOKEN. att.pointing
@tstamp (optional) Encodes the onset time in terms of musical time, i.e., beats[.fractional_beat_part]. Value conforms to data.BEAT . att.timestamp.musical
@unit (optional) Indicates the unit of measurement. Allowed values are: " byte" (Byte.), " char" (Character.), " cm" (Centimeter.), " in" (Inch.), " issue" (Serial issue.), " mm" (Millimeter.), " page" (Page.), " pc" (Pica.), " pt" (Point.), " px" (Pixel.), " record" (Record.), " vol" (Serial volume.), " vu" (MEI virtual unit.) att.measurement
@when (optional) Indicates the point of occurrence of this feature along a time line. Its value must be the ID of a when element elsewhere in the document. Value conforms to data.URI . att.alignment
@width (optional) Measurement of the horizontal dimension of an entity. Value conforms to data.MEASUREMENTABS . att.width
@xlink:actuate (optional) Defines whether a link occurs automatically or must be requested by the user. Allowed values are: " onLoad" (Load the target resource(s) immediately.), " onRequest" (Load the target resource(s) upon user request.), " none" (Do not permit loading of the target resource(s).), " other" (Behavior other than allowed by the other values of this attribute.) att.pointing
@xlink:role (optional) Characterization of the relationship between resources. The value of the role attribute must be a URI. Value conforms to data.URI . att.pointing
@xlink:show (optional) Defines how a remote resource is rendered. Allowed values are: " new" (Open in a new window.), " replace" (Load the referenced resource in the same window.), " embed" (Embed the referenced resource at the point of the link.), " none" (Do not permit traversal to the referenced resource.), " other" (Behavior other than permitted by the other values of this attribute.) att.pointing
@xml:base (optional) Provides a base URI reference with which applications can resolve relative URI references into absolute URI references. Value conforms to data.URI . att.commonPart
@xml:id (optional) Regularizes the naming of an element and thus facilitates building links between it and other resources. Each id attribute within a document must have a unique value. Value of datatype ID. att.id
Member of
Contained by
May contain
Empty
Declaration
<classes>
<memberOf key= " att.common" />
<memberOf key= " att.facsimile" />
<memberOf key= " att.pointing" />
<memberOf key= " att.targeteval" />
<memberOf key= " att.barLine.log" />
<memberOf key= " att.barLine.vis" />
<memberOf key= " att.barLine.ges" />
<memberOf key= " att.barLine.anl" />
<memberOf key= " model.eventLike" />
</classes>
<content>
<rng:empty/>
</content>
Remarks

This element is provided for repertoires, such as mensural notation, that lack measures. Because the barLine element's attributes, from which the logical and visual characteristics of the bar line can be discerned, largely duplicate those of measure, the use of barLine is not necessary within measure elements in CMN.

Constraints
The value of @taktplace must be less than or equal to two times the number of staff lines.
<sch:rule context= "mei:barLine[@taktplace]">
<sch:let name= "staff" value= "ancestor::mei:staff/@n"/>
<sch:let name= "staffpos" value= "count(ancestor::mei:staff/preceding-sibling::mei:staff) + 1"/>
<sch:assert test= "number(@taktplace) <= number(2 * preceding::mei:staffDef[@n=$staff and @lines][1]/@lines)"> The value of @taktplace must be less than or equal to two times the number of staff lines. </sch:assert>
</sch:rule>

MEI Guidelines Version 3.0.0

MEI Elements