is hitting; is knocking
だれかがドアをこつこつとたたいている。
Someone is knocking on the door.
メグはドラムをたたいている。
Meg is playing the drums.
だれかがドアをどんどんたたいている。
Someone is banging on the door.