Midnight Cowboy composer John Barry has died at the age of 77.