When you listen to strong, melancholic music or contemplate a sad piece of art, you are taking your attention beyond mere sensation to the interior meaning of your mood. You are educating yourself in your emotion, so that you not only get past it ultimately, but you gain from it from having penetrated deep into its nature.