Melody Scanner is a mobile app / website, where you can convert your audio files, microphone recordings, or even YouTube videos to sheet music.
You can then play, edit, or use Melody Scanner to learn them.