Controlling an Op-amp gain using an MCU && || DAC?
You can certainly use a digital pot.  You might also try a variable gain amplifier -- or maybe a switched capacitor circuit controlling a resistance value in a feedback path to change the gain by changing the switched cap clock frequency.