I am trying to plot the frequnecy spectrum of my wav file data. I get a list of complex numbers and by testing with smaller numbers, I know the values are correct. But, I don't know how to plot. I just know I am supposed to get something like small barcharts, that are supposed be symmetrical. But my graph it's not. Below is my code and current plot.
from scipy.io.wavfile import read import numpy as np import matplotlib.pyplot as plt import math df = read('matches-4.wav') data = np.array(df, dtype=float)[:, 1][2000:2512] # using right channel def discrete_fourier_transformation(): c =  for k in data: summation = 0 for j in data: summation += j * math.e ** (-1j * (2 * math.pi / len(data)) * j * k) c.append(abs(1 / len(data) * summation)) return c values = discrete_fourier_transformation() plt.plot(values) plt.show()