att.barring

Attributes that capture the placement of bar lines.
Module
MEI.shared
Attributes
bar.len, bar.method, bar.place
bar.len(optional)States the length of barlines in virtual units. The value must be greater than 0 and is typically equal to 2 times (the number of staff lines - 1); e.g., a value of '8' for a 5-line staff. Value of datatype a decimal number larger than 0.
bar.method(optional)Records the method of barring. Value conforms to data.BARMETHOD.
bar.place(optional)Denotes the staff location of bar lines, if the length is non-standard; that is, not equal to 2 times (the number of staff lines - 1). Value conforms to data.STAFFLOC.
bar.len(optional)States the length of barlines in virtual units. The value must be greater than 0 and is typically equal to 2 times (the number of staff lines - 1); e.g., a value of '8' for a 5-line staff. Value of datatype a decimal number larger than 0.
bar.method(optional)Records the method of barring. Value conforms to data.BARMETHOD.
bar.place(optional)Denotes the staff location of bar lines, if the length is non-standard; that is, not equal to 2 times (the number of staff lines - 1). Value conforms to data.STAFFLOC.
Component declarations that are shared between two or more modules.
bar.len(optional)States the length of barlines in virtual units. The value must be greater than 0 and is typically equal to 2 times (the number of staff lines - 1); e.g., a value of '8' for a 5-line staff. Value of datatype a decimal number larger than 0.
bar.method(optional)Records the method of barring. Value conforms to data.BARMETHOD.
bar.place(optional)Denotes the staff location of bar lines, if the length is non-standard; that is, not equal to 2 times (the number of staff lines - 1). Value conforms to data.STAFFLOC.
Available at
measureUnit of musical time consisting of a fixed number of note values of a given type, as determined by the prevailing meter, and delimited in musical notation by bar lines.
scoreDef(score definition) – Container for score meta-information.
staffDef(staff definition) – Container for staff meta-information.
staffGrp(staff group) – A group of bracketed or braced staves.
measureUnit of musical time consisting of a fixed number of note values of a given type, as determined by the prevailing meter, and delimited in musical notation by bar lines.
scoreDef(score definition) – Container for score meta-information.
staffDef(staff definition) – Container for staff meta-information.
staffGrp(staff group) – A group of bracketed or braced staves.
Constraints
"mensur" not allowed in this context.
<sch:rule context="@bar.method[parent::*[matches(local-name(), '(staffDef|measure)')]]">
<sch:assert test="not(. eq 'mensur')">"mensur" not allowed in this context.</sch:assert>
</sch:rule>
Declaration
<classSpec ident="att.barring" module="MEI.shared" type="atts">
<desc>Attributes that capture the placement of bar lines.</desc>
<attList org="group">
<attDef ident="bar.len" usage="opt">
<desc>States the length of barlines in virtual units. The value must be greater than 0 and is typically equal to 2 times (the number of staff lines - 1); e.g., a value of '8' for a 5-line staff.</desc>
<datatype maxOccurs="1" minOccurs="1">
<rng:data type="decimal">
<rng:param name="minExclusive">0</rng:param>
</rng:data>
</datatype>
<remarks>
<p part="N">This attribute is ignored if the value of the bar.style attribute is "mensur".</p>
</remarks>
</attDef>
<attDef ident="bar.method" usage="opt">
<desc>Records the method of barring.</desc>
<datatype maxOccurs="1" minOccurs="1">
<rng:ref name="data.BARMETHOD" />
</datatype>
<constraintSpec ident="check_barmethod" scheme="isoschematron">
<constraint>
<sch:rule context="@bar.method[parent::*[matches(local-name(), '(staffDef|measure)')]]">
<sch:assert test="not(. eq 'mensur')">"mensur" not allowed in this context.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</attDef>
<attDef ident="bar.place" usage="opt">
<desc>Denotes the staff location of bar lines, if the length is non-standard; that is, not equal to 2 times (the number of staff lines - 1).</desc>
<datatype maxOccurs="1" minOccurs="1">
<rng:ref name="data.STAFFLOC" />
</datatype>
<remarks>
<p part="N">The location may include staff lines, the spaces between the lines, 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, and 10. So, a value of '9' puts the bar line through the top line of the staff.</p>
<p part="N">This attribute is ignored if the value of the bar.style attribute is "mensur".</p>
</remarks>
</attDef>
</attList>
</classSpec>