Before I dig into this too far and fail profusely...
Using a PIC12F1822 and it's 5 bit DAC to make waves ranging from about 5hz up to around 5Khz. Since it's only 5 bits, there's quite a bit of "step" in the waves at all freq's, so the spectrum is going to get pretty ugly at the higher end...lots of noise.
I put a simple R/C filter on the output, and of course, with values Rx and Cx, it only works in a certain range of frequencies, whatever they are. Go outside of that range and the sine wave, while the edges are much cleaner, there's quite a bit of distortion.
Consulted the "Good Book", had an AHA! moment when I realized that opamps can be configured as filters of various types.
So, what if I whip up an low pass filter using an inverting configuration opamp circuit, with a fixed C value, with variable but equal R1 and R2 values (use a digital pot for both). Keep the gain at unity, but change the frequency response of the opamp by varying the resistance value of both resistors at the same time. I don't have any way to measure distortion other than overlaying the original unfiltered signal over the filtered signal. Good enough for me.
Whaddaya think? Good in theory, sucks in practice? Or good in theory, works in practice?