Here is my work as yet.
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()
Python has a wave module wave — Read and write WAV files .
An example of how to use it to write function data to a wav file is given here,
Create a synthetic ‘sine wave’ wave file and How to make a simple .wav file with Python.
You could also use Audiolab .
As you are already using numpy, you could use numpy.linspace or numpy.arange instead of your xr function. Something like,