def plotSoundWave(rate, sample):

    t = scipy.linspace(0, 2, 2*rate, endpoint=False)
    pylab.figure('Sound wave')
    T = int(0.0001*rate)
    pylab.plot(t[:T], sample[:T],)
    pylab.show()
Plots a given sound wave.
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/first_peaks_method.py/plotSoundWave