Tony Gilroy’s new film “Behemoth!” concerns Alex, an elite cellist played by Pedro Pascal, and the film’s score is as much a co-star as any of the cast.

The film opens as Alex is in a recording session for a film score, but as the orchestra plays, we don’t see the film but instead are treated to flashbacks from Alex’s life that perfectly match the music.

Director Gilroy, known for “Andor,” “Michael Clayton” and writing the screenplays of the Jason Bourne films, uses the score in innovative ways. Throughout the film, it’s often difficult to tell whether Alex cares more about his music or living a life outside of it; he frequently struggles to be present in relationships with lovers, friends and family, but he gives his all to the cello.

“Music means a lot to all of us, but for Alex it means everything,” Gilroy said on a panel after a press screening of “Behemoth!” at the New York Film Festival. “There’s no place where it stops.”

Anna Lapwood conjures Middle-earth with ‘Lord of the Rings’ at Disney Hall

This film, which opens on Dec. 4, marks a culmination of Gilroy’s passions. Movies are in his blood: his father, Frank, wrote the play, “The Subject Was Roses,” and more than a dozen screenplays; Tony’s brother Dan is also a screenwriter, while another brother, John, is a film editor, (The three brothers all worked together on the acclaimed “Star Wars” series “Andor.”)

But before becoming a filmmaker, Tony Gilroy devoted his life to music as fervently as Alex does.

“You watch the Beatles on TV, and you get a guitar,” Gilroy, 70, said, describing his initial inspiration for music. “I started playing in bands when I was 12 and was playing clubs when I was 13. Later, I moved to Boston and played in bands, and I thought I was really good.”

“At 19, I was a demo studio player in Boston and a guy invited me to LA, saying, ‘I won’t put you on my record, but you can run my band,” he continued. “He had guys from Little Feat and Elton John’s band, and I just realized, ‘Holy crap, this is a whole other thing.’

“I pursued music intensely until my mid-20s, but I reached a point where I realized I wasn’t going to get where I wanted to get. So I excised music from my life completely and tended bar for six years,” says Gilroy.

After finding success as a screenwriter, he made his directing debut with 2007’s “Michael Clayton,” and while working on finding the proper score for the film, he fell in love with music again. “I just loved being in the cockpit again and finally having control of the music,” he said. “So I’ve been obsessed with scores for 20 years now. I’ve been so happy making this movie for the last two years it’s not fair.”

Gilroy says he’s fascinated by how film orchestras are filled with disparate people. “One is doing Sudoku, one’s knitting, one’s calling their broker, but when the light goes on they instantly become this single organism right in front of you. And you wonder what just happened.”

Gustavo Dudamel, after 17 years as conductor of the LA Phil, says goodbye

Everyone on the NYFF panel was asked about their favorite movie scores. Gilroy didn’t want to play favorites among living composers, so he chose Anton Karas’s score “The Third Man,” saying it had the greatest effect upon the film of any he could think of.

Actress Eva Victor, who plays Nadia, a fellow musician and one of Alex’s lovers, cited “Under the Skin” by Mica Levi. Will Arnett, who plays Alex’s brother, chose “Passion,” Peter Gabriel’s soundtrack for Martin Scorsese’s film, “The Last Temptation of Christ,” saying he stole it from a roommate and listened to it endlessly even though he has never seen the movie.

Pascal gave the most detailed answer, explaining that he became a movie music nerd. He asked for the soundtracks of “Footloose” and “Flashdance” for his birthday and bought the scores for “Empire of the Sun” by John Williams and “The Color Purple” by Quincy Jones, which he listened to “religiously.”

“I would even go see movies just because of who was scoring them,” he said.

To score this new film, Gilroy took an unusual approach, hiring nine well-known composers to write music for different scenes: Michael Ables, Emily Bear, Lukas Frank, Michael Giacchino, James Newton Howard, Henry Jackman, Nami Melumad, Brandon Roberts, and Alan Silvestri.

“When I finished the movie, I realized I had created all these fictional films and projects, and I knew I needed a different voice for each one and I needed to cast it the way I cast actors,” he says, adding that he had to persuade each one, especially since there was little money in the budget for nine different composers.

Gilroy’s unyielding devotion to getting the music right echoed Alex’s on-screen persona. (“Andor” fans will have noticed this as well; the film’s theme is performed differently for each episode, often foreshadowing what’s to follow.)

On the panel, Pascal said that when he first read the script, he didn’t know how to approach the character. He said he “is as much a passenger to his life as you as a viewer are a passenger to his experience. But I was taken by the story and the intimacy in it and in being guided by the music.”

Pedro Pascal goes from ‘Game of Thrones’ to ‘Great Wall’

Pascal added that learning to play the cello credibly while also learning his lines and finding his way into Alex was “the hardest thing I’ve ever done creatively for a part.”

“The cello was the main character in my life leading up to the shooting,” he said, adding that he followed Gilroy’s advice and took it with him everywhere.

“Everything about it surprised me. It was hell… and heaven. It was incredible to be in lessons again with another artist, the physical challenge of it and the meticulousness of it. You’re supposed to spend a year learning how to hold the bow correctly, and I had a week. I never caught up to it, which was kind of the ecstasy of it all.”