2011-07-02 37 views
0

这是我的工作。我需要转换为wave文件

import matplotlib.pyplot as plot 
import numpy as num 

def xr(start, stop, step): 
    while start < stop: 
     yield start 
     start = start + step 

wavef = lambda x: num.sin(x)/x 

t0 = [wavef(x) for x in xr(5.0,200.0,0.1) if x is not 0] 

plot.plot(t0) 
plot.show() 
+2

请详细说明你到底想要做什么 –

+0

问题是什么? – Alexander

回答

相关问题