I am generating some sound files that play tones at various frequencies with a certain number of harmonics.
Ultimately, these sounds will be played on a device with a small speaker.
I have the frequency response curve of the speaker and want to do the following in Python:
- Plot the frequency spectrum of sound file. I need a take the FFT of the file and plot it with
gnuplot
- Apply a nonlinear transfer function based on the frequency response curve in the data sheet.
- Plot the result after the function is applied.
Does anyone know :
- What the simplest way to do this would be?
- or of an Application (GNU/Linux based) that could do this for me?