How to figure out the key signature of a melody by ear