WaveSurfer is an open source tool for sound visualization and manipulation. Typical applications are speech/sound analysis and sound annotation/transcription. WaveSurfer may be extended by plug-ins as well as embedded in other applications.
This video tutorial outlines a process for using MIDI to transcribe a melody. A key aspect of this process is aligning the digital audio file with the MIDI file to be able to hear them simultaneously.