I'm modifying a guitar effects pedal circuit, and in the circuit the designer has a potentiometer wired as a rheostat in the feedback loop of an op amp for a gain control. There's also a capacitor in the circuit creating a low pass filter. I don't really like this arrangement, as changing the gain of the circuit will affect the circuit's frequency response as well. Is there a better way to use a potentiometer in the feeeback network that would allow the cutoff frequency of the low-pass filter to remain constant, while still having the gain be somewhat adjustable? Some kind of T network, perhaps? Or will having any kind of variable resistance in the feedback network always affect the frequency response in a low pass configuration?