Melodyne can do what you want to do. If you have Sonar X3 Producer, it includes Melodyne essentials. Hum your track. Use the Region effects and chose Melodyne. Fix the pitch. Bounce to tracks, and then drag the audio track to a midi track, and Melodyne will convert it to midi notes. You may need to edit in the piano roll.