Suppose the compressor is just looking at peaks, not RMS, to keep it simple.
I've made progress. But a question regarding attack has been bugging me. When the signal goes above the threshold, the compressor computes the amount of gain reduction needed and remembers that the reduction will be applied in the near future (the attack time). The signal is undisturbed until then. But what happens if the signal goes above the threshold AGAIN, at a higher level, before the attack time comes?
Is the upcoming gain reduction amount recomputed according to that higher level? Is it just ignored? Or is it remembered for the attack cycle after this one?
I don't know why my little brain is approaching this as a recursive problem, which I'm sure it's not.
