he said the song had come to him in a dream the night after the zoo incident and hed scribbled down the lyrics and sang the melody into a tape recorder after waking at some ungodly hour of the night with the song blaring in his head .