How is this possible?
I used https://tonejs.github.io/MidiConvert/ to convert my midi file to a readable json format.
Then I programmed this script to load the json files and send out signals for every note in every instrument
And each sprite which are separate cats with different instruments get different scripts, they separately receive signals and change frames
Here's the music that I made for it: