Memory strength is also a function of how much we care about the experience.... If I'm playing an instrument I like, and whose sound pleases me in and of itself... caring leads to attention, and together they lead to measurable neurochemical changes. Dopamine, the neurotransmitter associated with emotional regulation, alertness, and mood, is released, and the dopaminergic system aids in encoding the memory trace.
This is Your Brain on Music (2006)