summaryrefslogtreecommitdiff
path: root/test/fft.py
blob: bc6509f6cbf47c7cdd0064bd3af6de97b2d768b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python

from pylab import *
import numpy

f = open('build/test/lpf_ir')
ir = []
while True:
    l = f.readline()
    if l == "":
        break

    ir.append(float(l.strip()))

#plot(abs(numpy.fft.fft(ir)))
plot(ir)
show()