If you understand what a midi file is, you'll know how impossible this is to do with a program like cool edit.
There are some out there, like the Audio-Ear thing and the GuitarSynth, but those are built for transforming specific types of information into midi data, not a midi file. But they don't really work all that well..