def scaled_fft(fft, scale=<NUM_LIT:1.0>):
data = np.zeros(len(fft))<EOL>for i, v in enumerate(fft):<EOL><INDENT>data[i] = scale * (i * v) / NUM_SAMPLES<EOL><DEDENT>return data<EOL>
Produces a nicer graph, I'm not sure if this is correct