We need for each note its velocity to find accentuation errors. We will use the MIDI definition of the velocity: an integer value between 0 and 127.
For general dynamics errors, a global dynamic parameter would be better (ex: mf from meas.21 to meas.27, f from meas.27 to meas.28, etc.). Values will be taken between:
[ppp, pp, p, mp, mf, f, ff, fff].
For the staccato/legato errors, we need a special parameter which would allow to indicate in the score how the part shall be played. Value of this parameter will be chosen between three values: [staccato, normal/undefined, legato].