When it comes to anticipating how a song will progress, the human brain considers the rhythm and beats that came before.