The problem is a little bit different from what I first thought it was.
LP16 sends midi note off messages, i.e. if a note ends, the sounds stops (in my case the video stops playing). But if the device is stopped ar pauzed manually before the end of the song, it does not send note off messages, i.e. all the unfinished notes hang (in my case the video keeps playing).
I’ve sent you a midifile.
Thanks for your help.