Best Practice for Getting RMS/Peak on an audio buffer
-
Hello everyone,
I was wondering what the updated best practice is for getting RMS and peak values of an audio signal for HISE are? The goal is to use them for an "input trim" knob on an audio effect plugin, however the only examples I have seen are ones for peak/vu meters.
Any help on the issue would be much appreciated? I have checked out the relevant API documentation except for some reason Buffer.getRMSLevel has not been working. I keep getting an unknown function error based on this input:
var RMS = Buffer.getRMSLevel(0,128);
I have tested it also using Engine.getBlockSize() too. Right now I have it implemented in a timer callback.
Best,
Noah