fix #17906: when a chord is detected on MIDI input, the cursor is moved back before adding each subsequent note after the first, so that all of them become part of the same chord at the same position; the 'active' variable in MuseScore::midiNoteReceived() is used in a comparison, instead of directly as a parameter, since sometimes it can be -1
Merge pull request #167 from watery/17906-midichordinput

fix #17906: chord MIDI input is fixed