Barack Obama, Allen Toussaint

President Barack Obama welcomes Allen Toussaint to award him the 2012 National Medal of Arts for his contributions as a composer, producer, and performer, during a ceremony in the East Room of the White House in Washington. (AP Photo/Carolyn Kaster)

New Orleans musician Allen Toussaint easily adopted multiple musical roles during a legendary career that took him from the Crescent City to the world stage, writing or producing hits such as โ€œSouthern Nights,โ€ and โ€œRuler of My Heart,โ€ or performing at his beloved piano, often stylishly dressed in colorful suits.

Toussaint died Nov. 10 in Spain of a heart attack, Madrid emergency services spokesman Javier Ayuso said. He gave his last performance at Madridโ€™s Lara Theater on Nov. 11.

Toussaintโ€™s family confirmed his death in an emailed statement, thanking fans and friends for their condolences.

โ€œHe was a legend in the music world,โ€ said Quint Davis, who produces the New Orleans Jazz and Heritage Festival. Toussaint performed there so often โ€” starting in 1973 โ€” that Davis said Toussaint referred to the festival as his โ€œannual concert.โ€

Born in New Orleansโ€™ working class Gert Town neighborhood, Toussaint went on to become one of the cityโ€™s most legendary and celebrated performers and personalities.

Early on, Toussaint was known mostly as an R&B songwriter and producer. He worked for the New Orleans-based Minit Records in 1960 before being drafted in the Army for two years.

He worked with such luminaries as Lee Dorsey, Art and Aaron Neville, Irma Thomas, the Meters, Joe Cocker and Ernie K-Doe. Thomas remembered Toussaint, who produced her songs โ€œItโ€™s Rainingโ€ and โ€œI Did My Part,โ€ as someone who wrote beautiful stories set to music.

In the late 1950s and early โ€™60s, Thomas and Toussaint and others would gather at Toussaintโ€™s momโ€™s house to rehearse.

โ€œI donโ€™t know how his mom put up with all of us in there all the time. But thatโ€™s where we learned our songs,โ€ said Thomas. โ€œThat was the place to be, his momโ€™s living room.โ€

In 1973, with fellow songwriter Marshall Sehorn, he established his own recording studio called Sea-Saint Studio. There, he worked with a succession of musicians including Paul Simon, Paul McCartney, Patti LaBelle, Cocker and Elvis Costello.

Toussaint had numerous hits to his name. He penned the 1966 Lee Dorsey classic โ€œWorking in the Coal Mineโ€ and produced Dr. Johnโ€™s 1973 hit โ€œRight Place, Wrong Timeโ€ and 1975โ€™s โ€œLady Marmaladeโ€ by the vocal trio Labelle.

Aaron Walker, who is working on a documentary about Toussaint, said he often wrote with specific people in mind โ€” thinking, for example, about Dorseyโ€™s smile.

His influence could be felt far outside of R&B circles. The song โ€œSouthern Nights,โ€ which Toussaint wrote and performed, was later covered by country star Glen Campbell and hip-hop artists in the 1980s and โ€™90s often sampled from his songs.

He eventually began performing more and producing his own albums in the 1970s. Onstage he often wore sequined and colorful suits and even off the stage he was known as a snazzy dresser with unconventional footwear.

โ€œYou always saw Allen with a coat and tie and wearing sandals,โ€ Davis said.

He drove a Rolls Royce but otherwise lived a modest life in New Orleans, said Walker. In recent years he appeared on the HBO series โ€œTreme.โ€

Toussaint is a member of the Rock and Roll Hall of Fame and the Louisiana Music Hall of Fame. In 2013, he was awarded the National Humanities Medal by President Barack Obama.

He had been expected to perform a benefit concert along with longtime friend Paul Simon in New Orleans on Dec. 8 at Le Petit Theatre to raise money for New Orleans Artists Against Hunger And Homelessness.

Hurricane Katrina in 2005 flooded not only his home but his Sea-Saint studio, forcing Toussaint to flee to New York. The studio never reopened. During Katrina, he also lost most of his manuscripts, his gold records and many of his stage outfits, Davis said.

Irma Thomas said Toussaint didnโ€™t do much touring before Katrina but after the storm he felt he needed to tour and bring attention to the city and its music.

โ€œThere were so many musicians who needed to get back on their feet. He said โ€˜Nowโ€™s the time I need to do this,’โ€ she said.

Like many New Orleanians, Toussaint couldnโ€™t stay away from the Crescent City forever. Nearly eight years after Katrina, Toussaint returned permanently to the city of his birth and so much of his musical inspiration.

He is survived by two children.