Text this: A detailed analysis of the imperfections of pulsewidth modulated waveforms on the output stage of a class D audio amplifier