import sys import matplotlib.pyplot as plt import simpl usage = 'Usage: python {0} '.format(__file__) if len(sys.argv) != 2: print usage sys.exit(1) audio = simpl.read_wav(sys.argv[1])[0] pd = simpl.LorisPeakDetection() pd.max_peaks = 30 peaks = pd.find_peaks(audio) pt = simpl.MQPartialTracking() pt.max_partials = 30 partials = pt.find_partials(peaks) simpl.plot_partials(partials, show_peaks=False) plt.show()