How do I express a soundwave as a function?

40 Views Asked by At

I have the soundwave of an A major chord and I am trying to use Fourier Transform on the soundwave to find the notes in the chord. Basically, using Fourier Transform on the wave function of the soundwave to find the amplitudes/volumes of the all the possible notes in the chord to determine which 3 are the loudest/of the highest amplitude. But to do that I need to turn my raw soundwave data into a function to plug into my Fourier Transform. SO how do I do that?