how to normalize samples from a drummaschine without loose the dynamic

This tool does exactly that:

https://forum.renoise.com/t/new-tool-3-0-dbatchprocess/42213

Buuuut - might be a bit tricky to set up, and is calling an external program (SoX) to do the heavy lifting.

Might be worth checking out SoX itself?