A lot of writers use music to set the mood while writing. I find music by Enya good for Fantasy, The Moody Blues for Science Fiction, and Taylor Swift for Romance and Young Adult. Lately, I've also come across a song that's useful for inspiration.
Check out the section of lyrics I have selected from Pink's new hit Try:
But just because it burns
Doesn't mean you're gonna die
You've gotta get up and try try try
Gotta get up and try try try
You gotta get up and try try try
Try is intended as a love song. The chorus is about getting up after a bad relationship, but can apply to any endeavor, including writing.
Rejection is the constant companion of any writer. Virtually nothing is published on its first submission. For my three published short stories, I have accumulated well over a hundred rejections. If I hadn't gotten up and tried after my first few rejections, I would never have gotten published.
It's the same for every other writer. No one enjoys rejection, but it's inevitable there will be many before an editor gives that acceptance e-mail. The successful writer is the one who gets up and tries again.