Is there a way to validate a .mid file? I created .mid files to use as sound effects and music for a video game. They work on some devices but not others. So far I can't tell if it's an issue with my program, with the devices, or my MIDI files. I'm wondering if there could be something wrong with my MIDI files that some players overlook but cause problems for other players.
Here's a simple sound effect file. It's just 2 short notes. It works fine on some devices, but I can't hear anything at all on other devices:
Here's a music file. It has some percussion, a bassline, and some higher notes designed to sound kind of like a twinkling effect. It also works fine on some devices, but on other devices I only hear the percussion and bassline without hearing the higher notes:
I made them myself using Java's built-in midi library, which probably isn't a very common way to create MIDI files, so I'm wondering if I did something wrong. Can anyone tell if there are problems with these files?