The best example of audio data manipulating GPIO pins is the LightshowPi project. Experience in Python, especially NumPy is tantamount for the success of such a project. Audio input and output is done with the pyalsaaudio module.
TL,DR: Learn the mathematics behind the Fast Fourier Transform, learn NumPy.