Learn-midi is a project mainly written in Python, it's free.
Learn-midi learns to procude MIDI output based on any audio input