My experience is that being in a depressed state makes me want to do anything to get the depressed feeling out of my body, which drives me to write/play music/whatever it takes. For me, expressing the sadness/whatever negative emotion I'm feeling can slowly chip away at it.