Anvil Studio is software focused on editing MIDI files.
With it it is not only possible to edit this type of file, but it is also possible to compose, merge and play MIDI sounds.
The software has a really pretty big list of features. The program has a very extensive manual describing them all.