For Danny Boyle’s “Slumdog Millionaire,” A.R. Rahman didn’t have to compose as much as he would for a Bollywood film, since the songs worked as the score. Aware of Boyle’s preference for punk music, ...