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!