If you are looking for a way to convert MIDI audio (.mid) to text format (.txt), the easiest way would be to use some of the online converters that offer exactly this type of mid to txt conversion. Probably used to transcript the notations or something.
Updated: April 25, 2022