Joe Pernice, esteemed for his ability to craft perfect, hooky, bittersweet pop tunes, has just published his debut novel, It Feels So Good When I Stop.

The veteran musician turned rookie novelist sets his story in the famed Massachusetts resort community of Cape Cod, but most of the book was written on a laptop at I Deal Coffee on Ossington Ave.

Starting in July of 2007, Pernice sat a table in I Deal from 10 a.m. to 2 p.m. daily for seven months and wrote.

The narrative, set in the mid-’90s, is littered with references to songs from the period and older classics. Pernice has recorded a companion solo CD of cover tunes, including Todd Rundgren’s Hello it’s Me and Del Shannon’s I’m Your Puppet, rendered in the performer’s characteristically low-key, bittersweet style. He is promoting the novel with a reading/singing tour that includes a Sept. 24 date at the Dakota Tavern.

“Initially, I wanted to leave music out of the book because I wanted to be judged – whether positively or negatively – as a guy who is writing a book, not as a musician who is taking a whimsical crack at this. But music is too important to me. I couldn’t avoid it.”