Director Seth MacFarlane was looking for songs to use in his new comedy film “Ted” that would match the film’s “energy.”

That’s not an easy task, given that the R-rated film is about a grown man, played by Mark Wahlberg, whose closest friend is his childhood teddy bear come to life. And that teddy bear just happens to love crude humor and raunchy parties.

That’s some kind of crazy energy.

Luckily for MacFarlane, his cousin, Tim Mercer of Portland, used to be in a New York heavy pop-rock band called Daphne. Mercer wrote and recorded some songs with Daphne a few years ago that MacFarlane thought would be perfect for raucous, lewd party scenes centered around a stuffed animal.

“I needed music that could be believably played when (Wahlberg) and his teddy bear are partying it up, songs that were appropriately energetic. So it was either going to be Anne Murray or Tim,” said MacFarlane, who also does the voice of Ted in the film, in a phone interview.

In case you’ve never seen the adult-oriented animated TV shows that MacFarlane creates — most notably “Family Guy” and “American Dad” on Fox — be assured he was kidding about Anne Murray.

MacFarlane said that even though Mercer is his cousin (they were close growing up), he listened to a lot of music before picking Mercer’s tracks. He also said he was looking for songs that weren’t big hits and wouldn’t cost a fortune to use.

Mercer’s songs fit that bill.

“I think they listened to, like, 150 songs, then Seth said, ‘My cousin Tim is a musician,'” said Mercer. “I sent them nine songs, and they used four.”

“Ted” opened nationally a week ago, and has been getting mostly good reviews, along with an R rating for crude language and situations.

The placement of Mercers songs in a major film comes at a good time. He’s trying to build up his Portland-based record label, Mercer Records, which currently consists solely of his own music.

Part of the label’s mission includes raising money for charities. Mercer, 41, says that about 75 percent of money raised from sales of Mercer Records songs will go to specified charities, while about 25 percent will go to the artist and a small amount to the label to cover costs.

While launching his record label, Mercer also tends bar at Flatbread Co. on Portland’s waterfront. He played with Daphne from about 1997 to 2008 before moving to Maine about four years ago when his father, Peter Mercer, who was working as a minister at First Parish Church in Saco, fell ill. His father has recovered, but Mercer decided to stay in Maine.

One of Mercer’s songs with Daphne, “Sin,” is on the “Ted” soundtrack album, so sales from that song will go to the soundtrack’s label, Universal Republic. But the three songs used in various scenes as background music are property of Mercer Records, so sales from those will go to Mercer’s label, and some proceeds will go to charity.

Of those songs, “Find Myself Again” is playing during a scene where Wahlberg’s girlfriend, played by Mila Kunis, walks in to find him and Ted on a couch with four women. The other tunes, “Crush” and “Isabelle,” are mostly heard in party scenes.

Money from sales of “Crush” will be donated to the Womanifest Destiny Project on Mount Desert Island, a scholarship program for high school seniors, said Mercer. About 75 percent of the money from sales of “Isabelle” or “Find Myself Again” will be donated to the Doug Flutie Jr. Foundation for Autism.

Those tunes, and other songs earmarked for other area charities, are available for sale online at

MacFarlane and Mercer grew up about an hour away from each other in Connecticut, and saw each other often. MacFarlane said he and Mercer have always been kindred spirits when it comes to creativity, and that they have a shared sense of humor.

So it makes sense that he would pick Mercer’s music for this project.

“It was an idea I had for an animated series some time ago, and when it came time for me to make a movie, I felt the premise could work,” said MacFarlane. “It’s an adult fairy tale.”

Only subscribers are eligible to post comments. Please subscribe or to participate in the conversation. Here’s why.

Use the form below to reset your password. When you've submitted your account email, we will send an email with a reset code.