This element may be used for instantaneous or continuous textual dynamics, e.g., 'p', 'mf', or 'cresc. poco a poco'. The hairpin element should be used for graphical, i.e., crescendo and diminuendo, dynamic markings. The starting point of the dynamic marking may be indicated by either a startid, tstamp, tstamp.ges, or tstamp.real attribute, while the ending point may be recorded by either a dur, dur.ges, endid, or tstamp2 attribute. It is a semantic error not to specify a starting point attribute. MIDI values associated with the graphical dynamic sign may be recorded in the val and val2 attributes.
<elementSpec ident="dynam" module="MEI.shared">
<gloss versionDate="2022-05-18" xml:lang="en">dynamic</gloss>
<desc xml:lang="en">Indication of the volume of a note, phrase, or section of music.</desc>
<classes>
<memberOf key="att.common"/>
<memberOf key="att.dynam.log"/>
<memberOf key="att.dynam.vis"/>
<memberOf key="att.dynam.ges"/>
<memberOf key="att.dynam.anl"/>
<memberOf key="att.facsimile"/>
<memberOf key="att.lang"/>
<memberOf key="model.controlEventLike"/>
</classes>
<content>
<rng:zeroOrMore>
<rng:choice>
<rng:text/>
<rng:ref name="model.textPhraseLike.limited"/>
<rng:ref name="model.editLike"/>
<rng:ref name="model.transcriptionLike"/>
</rng:choice>
</rng:zeroOrMore>
</content>
<constraintSpec ident="dynam_start-type_attributes_required" scheme="schematron">
<constraint>
<sch:rule context="mei:dynam">
<sch:assert test="@startid or @tstamp or @tstamp.ges or @tstamp.real"> Must have one of
the attributes: startid, tstamp, tstamp.ges or tstamp.real.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<constraintSpec ident="dynam_end-type_attributes" scheme="schematron">
<constraint>
<sch:rule context="mei:dynam[@val2]">
<sch:assert test="@dur or @dur.ges or @endid or @tstamp2">When @val2 is present, either
@dur, @dur.ges, @endid, or @tstamp2 must also be present.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<remarks xml:lang="en">
<p>This element may be used for instantaneous or continuous <emph>textual</emph> dynamics,
<abbr>e.g.</abbr>, 'p', 'mf', or 'cresc. poco a poco'. The <gi scheme="MEI">hairpin</gi> element should be
used for <emph>graphical</emph>,
<abbr>i.e.</abbr>, crescendo and diminuendo, dynamic markings. The
starting point of the dynamic marking may be indicated by either a <att>startid</att>,
<att>tstamp</att>, <att>tstamp.ges</att>, or <att>tstamp.real</att> attribute, while the
ending point may be recorded by either a <att>dur</att>, <att>dur.ges</att>,
<att>endid</att>, or <att>tstamp2</att> attribute. It is a semantic error not to specify a
starting point attribute. MIDI values associated with the graphical dynamic sign may
be
recorded in the <att>val</att> and <att>val2</att> attributes.</p>
</remarks>
</elementSpec>