Sony Corp. of America has agreed to sell its Gracenote music metadata business to the Tribune media conglomerate for $170 million.