I created a midi piano in the browser for a Roland EP7 IIe that sent midi note off in a weird way - causing double notes , it would send the same note but with just the velocity information changed to 0, which most midi software didn't like.
https://htmlgames.github.io/htmlgames.github.io/htmlgames/PF...
So I just held the notes in an array and used that for note on/off information instead.