title: How to reduce python fft output
body: <p>I'm coming from a C# implementation of fft in cscore where I can say that I want the size of my Fourier transform to by 4096. I'm trying to do do a FFT in python now but the size of the Fourier transform is larger(3.8 million). How do I limit this to 4096?</p>
  
  <p>Code I have now    </p>
  
  <pre><code>1 import numpy as np
  2 from scipy.io import wavfile
  3 
  4 sample_location = r'C:\Users\g\Desktop\Samples'
  5 samplerate, data = wavfile.read(sample_location + r"\g_abc.wav")
  6
  7 fft_data = np.fft.fft(data)
  8 freq = np.fft.fftfreq(data.size)
  </code></pre>
  
  <p>At the moment <code>fft_data.size</code> is the same size as <code>data.size</code>. I want to get a size of 4096</p>