Well, converting recordings (e.g. audio CDs) to MIDI format automatically is a *very* complicated task. There is one application which is regarded as impressively good in separating the individual notes in chords. I think it's called "Melodyne" and even this app doesn't achieve perfect results everytime, depending on source material.
What do you need the MIDI files for?