The idea has potential, but the algorithm isn't good. I suggest adding the option to download the MIDI file, because that way we can fix the errors caused in the context of the music.
If you have some patience, I’ll be able to look into it next week, and I’ll have the update ready by the end of the month!