Yes, there is an app called ScoreCloud Express (Formerly ScoreCleaner Notes), which can instantly create musical notes by hearing your melody or humming. This app works flawlessly and is currently available only for iOS. You can download the app from the App store.