Diatonic transposition requires both trans.diat and trans.semi attributes in order to distinguish the difference, for example, between a transposition from C to C♯ and one from C to D♭.
<classSpec ident="att.transposition" module="MEI.shared" type="atts">
<desc xml:lang="en">Attributes that describe transposition.</desc>
<attList>
<attDef ident="trans.diat" usage="opt">
<gloss xml:lang="en">transposition (diatonic)</gloss>
<desc xml:lang="en">Records the amount of diatonic pitch shift,
<abbr>e.g.</abbr>, C to C♯ = 0, C to D♭ = 1, necessary
to calculate the sounded pitch from the written one.</desc>
<datatype>
<rng:data type="integer"/>
</datatype>
</attDef>
<attDef ident="trans.semi" usage="opt">
<gloss xml:lang="en">transposition (semitones)</gloss>
<desc xml:lang="en">Records the amount of pitch shift in semitones,
<abbr>e.g.</abbr>, C to C♯ = 1, C to D♭ = 1,
necessary to calculate the sounded pitch from the written one.</desc>
<datatype>
<rng:data type="integer"/>
</datatype>
</attDef>
</attList>
<remarks xml:lang="en">
<p>Diatonic transposition requires both <att>trans.diat</att> and <att>trans.semi</att>
attributes in order to distinguish the difference, for example, between a transposition
from
C to C♯ and one from C to D♭.</p>
</remarks>
</classSpec>