Figure of Speech: “Beating a Drum Stimulates Soldiers into Courage”
This is metonymy—substituting “beating a drum” (the action) for the sound of the drum (the actual stimulus). The drumbeat itself rallies courage; the phrase uses the cause to represent the effect.