The opening beats of the Jon Spencer Blues Explosion song “Bellbottoms” feel cinematic, like something that should be kicking off an action scene. That’s what the writer and director Edgar Wright (“Shaun of the Dead,” “The World’s End”) thought upon first hearing that 1994 track. “When I listened to that song late at night in my flat, I would dream up this car chase and a visual of the sequence would come to me,” Mr. Wright said in a phone interview. “But this was before I knew what the story was and who the main character was.”

That story and character have since come into focus with Mr. Wright’s new film, “Baby Driver” (June 28), about a getaway driver named Baby (Ansel Elgort) who coordinates his escapes to the beat of the music on his iPod. The first heist begins with Baby playing “Bellbottoms.” What follows is a synchronized symphony of action, the characters’ movements (gum chewing, trunk-slamming), the editing and the stunts all timed to the rhythm of what’s playing in Baby’s headphones.

It’s one of many scenes constructed this way in “Baby Driver.” To get the timing precise for this action ballet, Mr. Wright brought on the choreographer Ryan Heffington, best known for his work on music videos like the one for Sia’s “Chandelier.” Here is a closer look at the heist sequence, with video and commentary from Mr. Wright and Mr. Heffington.