I have a sparkfun microphone pre-amplifier and a Chu Moy headphone amplifier and would like to control the gain of each from an arduino but i'm not sure how to go about it.
Would it be possible to use the arduino PWM for this function?
I have read and constructed the real-time audio processing experiment by Martin Nawrath in order to get better knowledge of it, but still scratch my head as how to implement my idea.
Would it be possible to use the arduino PWM for this function?
No, because the PWM switching fequency will get coupled into your audio signal. PWM is not a real analog voltage signal, it's a digital signal that switches on and off rapidly to simulate an analog signal, when averaged.