I just built a Class AB amplifier with a driver. I notice that a sawtooth wave is slightly bent as the ramp goes up. I think this is nonlinear distortion. I'd like to measure it, but I'm not sure how. I have a scope and a function generator. Can anyone tell me how I can measure the distortion and compare it to that which is considered acceptable for an audio amplifier?