The <diatonic> element
The <diatonic> element specifies the number of pitch steps needed to go from written to sounding pitch. This allows for correct spelling of enharmonic transpositions. This value does not include <octave-change> values; the values for both elements need to be added to the written pitch to get the correct sounding pitch.
This element is used in the following examples: