Upload your midi file to https://www.visipiano.com/midi-to-json-converter/ Because I am too lazy to code my own midi parser (musecore's midi files are complete nightmares to parse). Then paste it when it asks you to. Wait for a while, then it will give you a finished midi file.