I did some digging on MUtility. The "Expression Panel" allows for C/C++ type code to do specific mathematical taks. And I hope somebody can help me either write up a line of code, or just tell me how to do this right.
What I want to do:
Quite simple actually - and to some maybe stupid, but I have my reasons for this. I want MUtility to listen on the input of the plugin, and then instantly (sample accurately) normalize everything to -1dBFS on the output side of things.
Example:
First Input sample signal is at -60dBFS, I want to instantly bring it up to -1dBFS
Second Input sample signal then drops down to -80dBFS; I want to instantly bring it up to -1dBFS
Third input sample then shoots up to -30dBFS, I still want to bring it up to -1dBFS
I've tried to dip my toe into the code, and thought of an if/then/else solution. Or just if/then. And then I tried stuff like:
Code: Select all
x <= max ? y == maxSo what am I doing wrong?
How do I pull off this endeavor?
Can I even create something like that with one simple line of code?
Before anybody says "just use MAutoVolume or MAGC or similar"
I am not(!) after an auto gain as in "loudness normalization" (vocals, stereo mix, etc), or something that is controlled with an external signal. For this I have like 10 different tools already. So I am not after that.
Any help in a timely manner would be greatly appreciated.
Thanks

