I have this,
f = audiolab.Sndfile('test.wav', 'r')
data = f.read_frames(f.nframes, dtype=numpy.int16)
pyplot.rcParams['figure.figsize'] = 10, 2
pyplot.plot(data)
pyplot.xticks([])
pyplot.yticks([])
pyplot.show()
but the ploting is slow and freeze the pc, hoy I can reduce the numbers of points or how can I increase the performance of the code?