If it's in park the transmission drive chain isn't moving.

You could take the belts off and see if the noise goes away. Other possible things are exhaust rattle or lifters ticking.