Playing music before bed may decrease the time it takes to fall asleep and improve sleep quality. Music has been shown to decrease levels of a stress hormone called cortisol. Music triggers the release of dopamine, which can boost good feelings at bedtime and may help manage pain.