Quick question here about adding control voltage and attenuation into a circuit.
Say I have a simple op-amp configuration such as below, to vary the gain of an audio signal, where P1 is a variable resistor or potentiometer.
Suppose I wanted to add an input signal, say a ±5V low frequency signal, that would vary the resistance of P1 (i.e. using this low frequency signal to, in essence, turn the knob of the potentiometer instead of doing it by hand). And suppose I wanted to attenuate this input signal as well (for example, having a potentiometer that, when turned, varies the amplitude of the low frequency input signal, say to ±2V).
What exactly would I need to add to the circuit below to make this possible?