Michael Colgrass. (Paul Hoeffler/Paul Hoeffler)

Michael Colgrass, a Pulitzer Prize-winning classical composer who often highlighted percussion instruments in his works and sometimes stripped to his shorts and stood on his head while carrying the message of music to skeptical students and listeners, died July 2 at a hospital in Toronto. He was 87.

The cause was complications from cancer, said his wife, Ulla Colgrass.

Before becoming a full-time composer, Mr. Colgrass was a jazz drummer during his youth in Illinois, then a versatile percussionist who performed with orchestras and in the first Broadway production of Leonard Bernstein’s “West Side Story.”

He composed orchestral and chamber works, operas and other works for chorus and solo vocalists. Amid strong lyrical lines, he often incorporated elements inspired by nature, literature and earlier musical styles.

Mr. Colgrass once described how he created his work “Letter From Mozart,” which was commissioned for an ensemble associated with traditional classical music. Realizing that his audience might be reluctant to hear a modern composition, he pondered what he should compose “because whatever I write is going to make them unhappy,” he told the Toronto Star in 1987. “And I kind of fantasized a little bit and thought, ‘Well, what would Mozart do?’ ”

Mr. Colgrass said he had an imaginary conversation with Mozart: “ ‘Gee, Amadeus, I have this problem. I have to write for this audience who loves you, but they won’t love me.’ And so he says, ‘Look, why don’t you take a theme of mine and run it through a lot of modern music techniques, and here and there make it recognizable?’ ”

Michael Colgrass. (Paul Hoeffler/Paul Hoeffler)

The rhythms were so tricky that the composition required two conductors at its premiere in 1976. The result was “a collage of Mozartean ideas filtered through the clever mind of Mr. Colgrass in a very modern manner,” New York Times music critic Harold C. Schonberg wrote.

“A spot of jazz is succeeded by a touch of serialism, followed by aleatory, by marches, by [tuneful] lyricism, by the percussion effects so beloved by the new generation. It’s all skillful, terribly clever, and without much substance. But fun.”

A year later, Mr. Colgrass debuted “Deja Vu,” a single-movement concerto for four percussion players and first performed by the New York Philharmonic. The work featured timpani, vibraphone and a variety of more obscure instruments and percussive effects.

“Fragments of melody were tossed around, and every now and then they assembled themselves in a quite Romantic manner,” Schonberg wrote. “. . . Mr. Colgrass understands the entire potential of percussion, and some of his mixtures were very beautiful.”

“Deja Vu” was awarded the Pulitzer Prize for music in 1978. Four years later, Mr. Colgrass won an Emmy Award for a PBS documentary about his music.

In addition to music, Mr. Colgrass studied acting, clowning and comic traditions and became interested in hypnosis. (He once hypnotized members of an audience before a performance.)

“A really good composer,” he said in 1981, “puts you in a trance and talks to your subconscious mind.”

While speaking to school groups or workshops, Mr. Colgrass would sometimes shed most of his clothes, stand on his head, do somersaults and balance on his forearms to demonstrate the connection of the body to rhythm and dance. Students at one urban high school were shocked to silence, he wrote in a 1972 essay, but “by the time the session was over, the wrestling team was dancing to Stravinsky’s ‘Rite of Spring.’ ”

Michael Charles Colgrass Jr. was born April 22, 1932, in the Chicago suburb of Brookfield, Ill. His father, an Italian immigrant who changed his name from Colagrossi, was a professional boxer and later a postmaster. His mother was a homemaker.

Mr. Colgrass dated his interest in music to 1943, when he saw the movie “Reveille With Beverly.” The film featured the tune “Big Noise From Winnetka,” in which drummer Ray Bauduc’s thumping rhythm was joined by a driving bass line from Bob Haggart, who whistled a melody.

Midway through the number, Bauduc began to drum on one of the strings of Haggart’s upright bass, creating one of the most thrilling and oft-imitated moments in jazz history.

“I was more than intrigued, I was overwhelmed,” Mr. Colgrass told Toronto’s Globe and Mail newspaper in 1981. “I wanted to do the same thing. I wanted to play jazz.”

He worked as a golf caddie to earn money for his first set of drums, organized his first group at 11 and performed in jazz bands through high school. He did not read musical notation until he entered the University of Illinois, from which he received a bachelor’s degree in percussion performance and composition in 1954. He then served in an Army orchestra in Europe.

In 1955, Mr. Colgrass wrote in a 2015 essay, he decided to visit his father’s hometown of San Marco in southeastern Italy. He spent three days feasting, drinking and taking photographs. When he sent the pictures home, his father didn’t recognize anyone.

“You went to the wrong San Marco,” he said.

A year later, Mr. Colgrass returned to the correct San Marco, where the whole town turned out to meet the cousin visiting from distant Chicago.

Mr. Colgrass later moved to New York, where he performed with classical and jazz ensembles and was part of the pit orchestra for “West Side Story” when it debuted in 1957. He had begun to compose music in college and, in 1966, wrote one of his best-known works, “As Quiet As,” which was recorded by the Boston Symphony Orchestra.

In 1974, he and his wife moved to Toronto, believing it would be a better place to raise their son.

Survivors include his wife of 52 years, the former Ulla Dahgaard, a music journalist, and their son, Neal Colgrass, both of Toronto; and a sister.

Mr. Colgrass occasionally taught at colleges, but since 1967 he made his living as a full-time composer. He often counseled other aspiring musicians and composers and became a trainer in “neuro-linguistics programming,” a method of developing human potential. He published an autobiography in 2010.

Long concerned about attracting new audiences to classical music, Mr. Colgrass believed one solution was to invite composers to write works for young listeners.

“A lot of these new compositions,” he wrote in 1969, “would make unusual demands, perhaps using film, dance, lighting effects, even experimenting with a different kind of concert hall. All this would make the symphony orchestra grow with the times and stay fresh, perhaps even be fun as it was to Haydn and Mozart.”