For the last several years, Kesha’s legal struggles have overshadowed her music. The pop singer’s court battle with former producer Dr. Luke continues, but she’s finally been able to move on with her music, taking full control of the creative direction of her work. The result is Rainbow, released in August, Kesha’s first album since 2012’s Warrior and a bold statement about everything she’s been through over the past several years. Writing or co-writing nearly every song on the album, Kesha has expanded beyond the electro-pop of her earlier work, with influences from rock, country, funk and more, while retaining the pop sensibilities that first brought her success on singles like “Tik Tok” and “Die Young.”

Kesha’s collaborators on Rainbow range from rock band Eagles of Death Metal to singer-songwriter Ben Folds to country legend Dolly Parton, whose hit “Old Flames (Can’t Hold a Candle to You)” was co-written by Kesha’s mom, Pebe Sebert, and gets reimagined for Rainbow. Rolling Stone called the album “the best music of her career,” and Entertainment Weekly called it “an artistic triumph.” After years of headlines about lawyers and hearings, Kesha’s back where she belongs, making news with her music.

M Resort, 8 p.m. Sept. 16, starting at $20 plus tax and fee. 800.745.3000 Ticketmaster