Neil,
If this is temperature related then I may be looking at the exhaust components as an exhaust blow or perhaps an exhaust manifold gasket blow can give off a machine gun like effect, however this usuually gets louder when the temperature increases.
Another thing to check is that you do not have a loose spark plug.
Alex.