Your engine can make a lot of weird noises, depending on what has gone or is about to go fully kaput. If it's a rhythmic pinging sound that progressively increases as you step on the throttle, ...
Engine knock is not a single problem — there are at least four distinct types, each with a different cause and a different level of urgency. The pinging sound that appears only under hard acceleration ...