The composer and longtime Safdie collaborator explains how experimentation and instinct shaped the film’s sweeping musical ...