It's typically handwritten because computers aren't very good at transcribing music. You can use it to search for music: http://www.musipedia.org/melodic_contour.html
I should've said that a naive version of it would be easy (like a channel-wise, instrument-wise, or track-wise code).
edit: i forgot to mention that it's a completely different format - but it shows what's needed for such a parser.