A lot of these people have recommended amazing tools, and I don't have much to add when it comes to game design. However, I will add Aria Maetosa as a good open source MIDI creation software. I have had so much fun remixing and recreating past songs since I have no idea how to write my own stuff, but I hope for all my games to at least use this software for music.