"… as the Buddha points out, it's possible to change your mood and to create moods that are a lot more useful in the practice. That's why one of the steps in breath meditation is learning how to gladden the mind when it needs to be gladdened — both in terms of the way you breathe, and in terms of the way you learn to think and talk to yourself. In other words, see where the mood is leading you, and if you don't like the direction it's heading, realize that you're free to look at things in a different way."
"You need a spot where you can step back and look at things." … "If you can learn to look at your moods as baskets — i.e., not who you really are, but simply things you've created — then you can start working on the raw materials and make better ones. But it's important that you have this ability to step back."
[You need] "the right set of attitudes that help you gauge the situation for what it is" … "learning to gauge what was a healthy mood and what was an unhealthy one. … "remind yourself that these moods are not necessarily true; they're not necessarily you. They're like a set of clothing" … "regardless of how true you might think the mood is, you've got to look at its effects. Where is it leading you?"
[You need] "skills in creating and maintaining a better mood." … "What can you do to make it more and more solid? … There's a passage where the Buddha talks about a meditator who finds, as he's focusing on the breath, that there's a fever in his mind. So he needs to change his topic for the time being, to find something more inspiring, more uplifting. That could include reflecting on the Buddha, the Dhamma, the Sangha, or whatever you find inspiring that relates to the practice [e.g. by experiencing or recalling the peaceful joyful moments]." … "Anything that works in getting you out of an unskillful mood and into a more skillful one — one that's ready to settle down — is an important part of the meditation." … "The skills that enable you to be more mature in general, also help make you a more mature meditator."
"And then there are the skills of releasing the mind, knowing how to free the mind from a relatively skillful mood to reach an even more skillful one. Even when you've developed a skillful mood, you can then say, "Okay, this can take me only so far. What kind of mood would take me further?"
"Then finally, once you've got the mind in a much better mood, when its fever has subsided, you can go back to the breath, and the mind can really settle down. It can drop all that thinking and go to a place that's a lot more still, solid, and buoyant."
[Sentences/paragraphs taken from Meditation4]