Stumbled on this... maybe you've seen it, maybe not...
http://www.musictheory.net/
Fantastic site. But my favorite part is this, and the other identification exercises.
http://www.musictheory.net/exercises/ear-interval
Training your relative pitch will make it easier for you to hear a melody in your head and write it out, without banging on a piano to figure out what all the notes are. Well, maybe with *less* banging.
Hope you find this as useful as I did.