Good tips. Years ago there was a story about Keith Richards playing the riff for Brown Sugar or Jumping Jack Flash or some song into a small tape recorder in the middle of the night and when he woke up he had something to work with. I'd think this could be a common occurrence for dozens of musicians and songs but always have some means to get your ideas down.