Caution: using BAZ's approach will actually strip out the chords that are in the MIDI (midi2txt does that) and then create a set of new chords, which may or may not reflect the original chords in the MIDI file. (although no doubt they would "work" for the tune to a greater or lesser degree.)