MusicXML is a file format for specifying sheet music. It can be used in a similar way to MIDI. There are many available programs for generating it, and the spec is widely used, highly documentated, and mature.
There are many programs available for reading/writing MusicXML: