Since batch processing sample data with lua is pretty slow, i wrote a new tool, mainly for trimming silence from recorded samples and normalizing.
The “SoX: Normalize (Relative)” preset normalizes all samples relative to the loudest sample in the instrument.
I added a couple more presets, see http://sox.sourceforge.net/sox.html for full documentation, some of the examples didn’t really work for me tho.
You can use other executables than SoX too ofc, @in and @out represent the oringal/processed files, if there is no output file it will load the @in file back into the instrument.
Should work on Windows and Linux (Mac too?) … make sure the PATH ends with a slash!