mei:scoreDef

(score definition) – Container for score
meta-information.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
barplace mei:mei_data.BARPLACE optional
Records the location of a bar line.
beam.color mei:mei_data.COLOR optional
Color of beams, including those associated with
tuplets.
beam.group xs:string optional
Provides an example of how automated beaming (including secondary beams)
is to be performed.
beam.rend restriction of xs:token optional
Encodes whether a beam is "feathered" and in which
direction.
beam.rests mei:mei_data.BOOLEAN optional
Indicates whether automatically-drawn beams should include rests shorter
than a quarter note duration.
beam.slope xs:decimal optional
Captures beam slope.
clef.color mei:mei_data.COLOR optional
Describes the color of the clef.
clef.dis mei:mei_data.OCTAVE.DIS optional
Records the amount of octave displacement to be applied to the
clef.
clef.dis.place mei:mei_data.PLACE optional
Records the direction of octave displacement to be applied to the
clef.
clef.line mei:mei_data.CLEFLINE optional
Contains a default value for the position of the clef. The value must be
in the range between 1 and the number of lines on the staff. The numbering of lines starts
with the lowest line of the staff.
clef.shape mei:mei_data.CLEFSHAPE optional
Encodes a value for the clef symbol.
clef.visible mei:mei_data.BOOLEAN optional
Determines whether the clef is to be displayed.
dur.default mei:mei_data.DURATION optional
Contains a default duration in those situations when the first note, rest,
chord, etc. in a measure does not have a duration specified.
dynam.dist mei:mei_data.MEASUREMENTREL optional
Records the default distance from the staff for dynamic
marks.
ending.rend restriction of xs:token optional
Describes where ending marks should be displayed.
grid.show mei:mei_data.BOOLEAN optional
Determines whether to display guitar chord grids.
harm.dist mei:mei_data.MEASUREMENTREL optional
Records the default distance from the staff of harmonic indications, such
as guitar chord grids or functional labels.
key.accid mei:mei_data.ACCIDENTAL.IMPLICIT optional
Contains an accidental for the tonic key, if one is required, e.g., if
key.pname equals 'c' and key.accid equals 's', then a tonic of C# is
indicated.
key.mode mei:mei_data.MODE optional
Indicates major, minor, or other tonality.
key.pname mei:mei_data.PITCHNAME optional
Holds the pitch name of the tonic key, e.g. 'c' for the key of
C.
key.sig mei:mei_data.KEYSIGNATURE optional
Indicates where the key lies in the circle of fifths.
key.sig.mixed restriction of list of mei:mei_data.KEYSIGTOKEN optional
Mixed key signatures, e.g. those consisting of a mixture of flats and
sharps (Read, p. 143, ex. 9-39), and key signatures with unorthodox placement of the
accidentals (Read, p. 141) must be indicated by setting the key.sig attribute to 'mixed'
and providing explicit key signature information in the key.sig.mixed attribute or in the
<keySig> element. It is intended that key.sig.mixed contain a series of tokens with
each token containing pitch name, accidental, and octave, such as 'a4 c5s e5f' that
indicate what key accidentals should be rendered and where they should be
placed.
key.sig.show mei:mei_data.BOOLEAN optional
Indicates whether the key signature should be
displayed.
key.sig.showchange mei:mei_data.BOOLEAN optional
Determines whether cautionary accidentals should be displayed at a key
change.
label xs:string optional
Provides a name or label for an element. The value may be any
string.
lyric.align mei:mei_data.MEASUREMENTREL optional
Describes the alignment of lyric syllables associated with a note or
chord.
lyric.fam mei:mei_data.FONTFAMILY optional
Sets the font family default value for lyrics.
lyric.name mei:mei_data.FONTNAME optional
Sets the font name default value for lyrics.
lyric.size mei:mei_data.FONTSIZE optional
Sets the default font size value for lyrics.
lyric.style mei:mei_data.FONTSTYLE optional
Sets the default font style value for lyrics.
lyric.weight mei:mei_data.FONTWEIGHT optional
Sets the default font weight value for lyrics.
mensur.color mei:mei_data.COLOR optional
Records the color of the mensuration sign. Do not confuse this with the
musical term 'color' as used in pre-CMN notation.
mensur.dot mei:mei_data.BOOLEAN optional
Determines if a dot is to be added to the base symbol.
mensur.form restriction of xs:token optional
Indicates whether the base symbol is written vertically or
horizontally.
mensur.loc mei:mei_data.STAFFLOC optional
Holds the staff location of the mensuration sign.
mensur.orient mei:mei_data.ORIENTATION optional
Describes the rotation or reflection of the base
symbol.
mensur.sign mei:mei_data.MENSURATIONSIGN optional
The base symbol in the mensuration sign/time signature of mensural
notation.
mensur.size mei:mei_data.SIZE optional
Describes the relative size of the mensuration sign.
mensur.slash xs:positiveInteger optional
Indicates the number lines added to the mensuration sign. For example, one
slash is added for what we now call 'alla breve'.
meter.count restriction of xs:string optional
Captures the number of beats in a measure, that is, the top number of the
meter signature. It must contain a decimal number or an additive expression that evaluates
to a decimal number, such as 2+3.
meter.rend restriction of xs:token optional
Contains an indication of how the meter signature should be
rendered.
meter.showchange mei:mei_data.BOOLEAN optional
Determines whether a new meter signature should be displayed when the
meter signature changes.
meter.sym mei:mei_data.METERSIGN optional
Indicates the use of a meter symbol instead of a numeric meter signature,
that is, 'C' for common time or 'C' with a slash for cut time.
meter.unit xs:decimal optional
Contains the number indicating the beat unit, that is, the bottom number
of the meter signature.
midi.bpm mei:mei_data.MIDIBPM optional
Captures the number of *quarter notes* per minute. In MIDI, a beat is
always defined as a quarter note, *not the numerator of the time signature or the
metronomic indication*.
midi.channel mei:mei_data.MIDICHANNEL optional
Records a MIDI channel value.
midi.duty mei:mei_data.PERCENT optional
Specifies the 'on' part of the duty cycle as a percentage of a note's
duration.
midi.mspb mei:mei_data.MIDIMSPB optional
Records the number of microseconds per *quarter note*. In MIDI, a beat is
always defined as a quarter note, *not the numerator of the time signature or the
metronomic indication*. At 120 quarter notes per minute, each quarter note will last
500,000 microseconds.
midi.port mei:mei_data.MIDIVALUE optional
Sets the MIDI port value.
midi.track xs:positiveInteger optional
Sets the MIDI track.
mm mei:mei_data.TEMPOVALUE optional
Used to describe tempo in terms of beats (often the meter signature
denominator) per minute, ala M.M. (Maezel's Metronome). Do not confuse this attribute with
midi.bpm or midi.mspb. In MIDI, a beat is always defined as a quarter note, *not the
numerator of the time signature or the metronomic indication*.
mm.dots mei:mei_data.AUGMENTDOT optional
Records the number of augmentation dots required by a dotted metronome
unit.
mm.unit mei:mei_data.DURATION optional
Captures the metronomic unit.
mnum.visible mei:mei_data.BOOLEAN optional
Indicates whether measure numbers should be displayed.
modusmaior mei:mei_data.MODUSMAIOR optional
Describes the maxima-long relationship.
modusminor mei:mei_data.MODUSMINOR optional
Describes the long-breve relationship.
multi.number mei:mei_data.BOOLEAN optional
Indicates whether programmatically calculated counts of multiple measures
of rest (mRest) and whole measure repeats (mRpt) in parts should be
rendered.
music.name mei:mei_data.MUSICFONT optional
Sets the default music font name.
music.size mei:mei_data.FONTSIZE optional
Sets the default music font size.
n optional
Provides a number-like designation for an element.
num.default xs:positiveInteger optional
Along with numbase.default, describes the default duration as a ratio.
num.default is the first value in the ratio.
numbase.default xs:positiveInteger optional
Along with num.default, describes the default duration as a ratio.
numbase.default is the second value in the ratio.
octave.default mei:mei_data.OCTAVE optional
Contains a default octave specification for use when the first note, rest,
chord, etc. in a measure does not have an octave value specified.
ontheline mei:mei_data.BOOLEAN optional
Determines the placement of notes on a 1-line staff. A value of 'true'
places all notes on the line, while a value of 'false' places stems-up notes above the
line and stems-down notes below the line.
optimize mei:mei_data.BOOLEAN optional
Indicates whether staves without notes, rests, etc. should be displayed.
When the value is 'true', empty staves are displayed.
page.botmar mei:mei_data.MEASUREMENTABS optional
Indicates the amount of whitespace at the bottom of a
page.
page.height mei:mei_data.MEASUREMENTABS optional
Specifies the height of the page; may be expressed in real-world units or
staff steps.
page.leftmar mei:mei_data.MEASUREMENTABS optional
Indicates the amount of whitespace at the left side of a
page.
page.panels mei:mei_data.PAGE.PANELS optional
Indicates the number of logical pages to be rendered on a single physical
page.
page.rightmar mei:mei_data.MEASUREMENTABS optional
Indicates the amount of whitespace at the right side of a
page.
page.scale mei:mei_data.PGSCALE optional
Indicates how the page should be scaled when rendered.
page.topmar mei:mei_data.MEASUREMENTABS optional
Indicates the amount of whitespace at the top of a
page.
page.width mei:mei_data.MEASUREMENTABS optional
Describes the width of the page; may be expressed in real-world units or
staff steps.
pedal.style restriction of xs:token optional
Determines whether piano pedal marks should be rendered as lines or as
terms.
ppq xs:positiveInteger optional
Indicates the number of pulses (sometimes referred to as ticks or
divisions) per quarter note. Unlike MIDI, MEI permits different values for a score and
individual staves.
prolatio mei:mei_data.PROLATIO optional
Describes the semibreve-minim relationship.
proport.num xs:positiveInteger optional
Together, proport.num and proport.numbase specify a proportional change as
a ratio, e.g., 1:3. Proport.num is for the first value in the ratio.
proport.numbase xs:positiveInteger optional
Together, proport.num and proport.numbase specify a proportional change as
a ratio, e.g., 1:3. Proport.numbase is for the second value in the
ratio.
reh.enclose restriction of xs:token optional
Describes the enclosing shape for rehearsal marks.
slur.lform mei:mei_data.LINEFORM optional
slur.lwidth mei:mei_data.LINEWIDTH optional
spacing.packexp xs:decimal optional
Describes a note's spacing relative to its time value.
spacing.packfact xs:decimal optional
Describes the note spacing of output.
spacing.staff mei:mei_data.MEASUREMENTREL optional
Specifies the minimum amount of space between adjacent staves in the same
system; measured from the bottom line of the staff above to the top line of the staff
below.
spacing.system restriction of list of union of(mei:mei_data.MEASUREMENTREL, mei:mei_data.MEASUREMENTREL) optional
Describes the space between adjacent systems; a pair of space-separated
values (minimum and maximum, respectively) provides a range between which a rendering
system-supplied value may fall, while a single value indicates a fixed amount of space;
that is, the minimum and maximum values are equal.
system.leftline mei:mei_data.BOOLEAN optional
Indicates whether the staves are joined at the left by a continuous line.
The default value is "true". Do not confuse this with the heavy vertical line used as a
grouping symbol.
system.leftmar mei:mei_data.MEASUREMENTABS optional
Describes the amount of whitespace at the left system margin relative to
page.leftmar.
system.rightmar mei:mei_data.MEASUREMENTABS optional
Describes the amount of whitespace at the right system margin relative to
page.rightmar.
system.topmar mei:mei_data.MEASUREMENTABS optional
Describes the distance from page's top edge to the first system; used for
first page only.
taktplace mei:mei_data.STAFFLOC 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.
tempus mei:mei_data.TEMPUS optional
Describes the breve-semibreve relationship.
text.dist mei:mei_data.MEASUREMENTREL optional
Determines how far from the staff to render text
elements.
text.fam mei:mei_data.FONTFAMILY optional
Provides a default value for the font family name of text (other than
lyrics) when this information is not provided on the individual
elements.
text.name mei:mei_data.FONTNAME optional
Provides a default value for the font name of text (other than lyrics)
when this information is not provided on the individual elements.
text.size mei:mei_data.FONTSIZE optional
Provides a default value for the font size of text (other than lyrics)
when this information is not provided on the individual elements.
text.style mei:mei_data.FONTSTYLE optional
Provides a default value for the font style of text (other than lyrics)
when this information is not provided on the individual elements.
text.weight mei:mei_data.FONTWEIGHT optional
Provides a default value for the font weight for text (other than lyrics)
when this information is not provided on the individual elements.
tie.lform mei:mei_data.LINEFORM optional
tie.lwidth mei:mei_data.LINEWIDTH optional
trans.diat xs:decimal optional
Records the amount of diatonic pitch shift, e.g., C to C♯ = 0, C to D♭ =
1, necessary to calculate the sounded pitch from the written one.
trans.semi xs:decimal optional
Records the amount of pitch shift in semitones, e.g., C to C♯ = 1, C to D♭
= 1, necessary to calculate the sounded pitch from the written one.
tune.Hz xs:decimal optional
Holds a value for cycles per second, i.e., Hertz, for a tuning reference
pitch.
tune.pname mei:mei_data.PITCHNAME optional
Holds the pitch name of a tuning reference pitch.
tune.temper mei:mei_data.TEMPERAMENT optional
Provides an indication of the tuning system, 'just', for
example.
vu.height restriction of xs:token optional
Defines the height of a "virtual unit" (vu) in terms of real-world units.
A single vu is half the distance between the vertical center point of a staff line and
that of an adjacent staff line.
xml:base mei:mei_data.URI optional
Provides a base URI reference with which applications can resolve relative
URI references into absolute URI references.
xml:id xs: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.

Used By

Source

<xs:element name="scoreDef">
  <xs:annotation>
    <xs:documentation>(score definition) – Container for score meta-information.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="0" ref="mei:mei_model.chordTableLike"/>
      <xs:element minOccurs="0" ref="mei:mei_model.symbolTableLike"/>
      <xs:group minOccurs="0" ref="mei:mei_model.keySigLike"/>
      <xs:group minOccurs="0" ref="mei:mei_model.meterSigLike"/>
      <xs:element minOccurs="0" ref="mei:pgHead"/>
      <xs:element minOccurs="0" ref="mei:pgHead2"/>
      <xs:element minOccurs="0" ref="mei:pgFoot"/>
      <xs:element minOccurs="0" ref="mei:pgFoot2"/>
      <xs:element minOccurs="0" ref="mei:instrGrp"/>
      <xs:element minOccurs="0" ref="mei:mei_model.staffGrpLike"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="mei:grpSym"/>
    </xs:sequence>
    <xs:attributeGroup ref="mei:mei_att.common.attributes"/>
    <xs:attributeGroup ref="mei:mei_att.scoreDef.log.attributes"/>
    <xs:attributeGroup ref="mei:mei_att.scoreDef.vis.attributes"/>
    <xs:attributeGroup ref="mei:mei_att.scoreDef.ges.attributes"/>
  </xs:complexType>
</xs:element>

Sample