Hi everyone,
does anyone ever implemented an automatic gain compensation?
Lets assume you boost 12 db with an EQ you will compensate that level boost, but automatically, to make a realistic comparision between the boosted and the non-boosted version of your signal.
I tried something with the RMS opcode but was not quite succesful. Balance opcode does not help either.
thanks!
//rootnote
I usually use a balance opcode with filters. Many filters also have a scaling parameter. If you prepare a simple example illustrating the problem we might be able to find a solution.
I came across this issue these past few days.
Here is an example of a transient detection algorithm (in its early state, I had to re-code it from scratch because of overfittingâŚ):
The envelope is too slow. So letâs use the balance2 opcode to boost it.
It works well but it ruins the dynamic. I think itâs intentional so take care when you use this opcode, especially after effects that shape the dynamics!
A simple alternative is to compute the rms of the two signals, compute the ratio and multiply the signal you want to boost by this ratio. You get:
Iâm still not sure how to interpret it but itâs better for my needs. It preserves most of the dynamics but it attenuates the signal right when I need it (itâs almost magical). I will dig more and find out whatâs happening!
1 Like