I am trying to make an EQ with auto makup gain. The idea is that as a band’s gain is increased, an output knob turns the master for that channel gain down (left or right). I had the idea of trying to store the magnitude of the samples before and after the processing using
auto inputLeftOutputGain = buffer.getMagnitude(0, 0, buffer.getNumSamples());
but everytime I do this, I end up with chatter or silence. I believe this is because I am not getting individual stores of the magnitude of the buffer before and after processing, even if I put the previous line above the following line in the chain.
How do I store the level of something before and after processing it?