Musical Meds: New research on endorphins finds people have higher pain thresholds immediately after performing music or dancing.

Jealous of the “runner’s high” serious athletes feel after an intense, vigorous workout? Well, newly published research reveals three alternative ways you can release those mood-enhancing endorphins:

Singing, dancing, and drumming.

That’s the conclusion of a study by University of Oxford psychologist Robin Dunbar. He and his colleagues report people who have just been playing music have a higher tolerance for pain—an indication their bodies are producing endorphins, which are sometimes referred to as natural opiates.

In their experiments, simply listening to music did not produce this positive effect. “We conclude that it is the active performance of music that generates the endorphin high, not the music itself,” the researchers write in the online journal Evolutionary Psychology.

Dunbar argues that music evolved, at least in part, as a way of strengthening societal bonds. As a 2010 study of preschoolers found, people who sing or move in rhythmic unison tend to work together more cooperatively afterwards. This explains the presence of music in church services and military ceremonies.