I created a simple DSP simulation of a negative feedback. It consists of the following:
- the difference of the input and the feedback signal is multiplied by 100000 (100 dB DC gain)
- it is then passed through a 6 dB/octave "compensation" lowpass filter with a -3 dB corner frequency of 10 Hz (GBWP = 1 MHz)
- the signal is then distorted by the arc tangent function 5 * atan(x / 5) to add some open loop non-linearity
- it is lowpass filtered again with a corner frequency of 1 MHz so that the phase margin decreases somewhat at the unity gain frequency
- the feedback signal for the next sample is calculated by dividing the output by 2 (closed loop gain = 6 dB)
The model was run at a sample rate of 10 MHz, so there is a 1 sample (100 ns) delay in the feedback loop. Although this could be considered a basic simulation of additional delays in the system.
On the following waveform and FFT displays, the left (top, cyan) channel is the unmodified input signal, and the right channel (bottom, magenta) is the output of the simulated feedback, divided by 2 to remove the gain. Time is shown in samples, 1 sample is 100 ns.
-6 dBFS step response (the ripples on the left channel were added by the waveform display):
The same step with a 10 kHz -12 dBFS sine wave added, the FFT is from some time after the step to show the distortion:
The first few cycles of the 19+20 kHz IMD test, and the distortion spectrum (again after some delay, otherwise it would just show the spectrum of the transient):
Of course, this is only a simplified model, but it does show that a negative feedback loop with a typical compensation filter added can handle transients in the audio band without noticeable problems, such as needing a few cycles to "stabilize" after a tone is turned on, or causing severe phase errors. The results from recording the output of a real amplifier would be similar, and links to difference extraction tests with music have also been posted earlier.