shithub: aubio

Download patch

ref: 9610f0a0f4ab689d8474963862ea8d7849b52de8
parent: 845f2d40e4b30b735d2364188ae9cef27c7eea33
author: Paul Brossier <piem@altern.org>
date: Thu Mar 16 10:51:46 EST 2006

optional plotting
optional plotting


--- a/python/aubiopitch
+++ b/python/aubiopitch
@@ -109,6 +109,7 @@
 	filetask = taskpitch(filename,params=params)
 	pitch = filetask.compute_all()
 	#print filetask.eval(pitch[i]) 
-	filetask.plot(pitch,wplot,oplots)
+	if options.plot: filetask.plot(pitch,wplot,oplots)
 
-filetask.plotplot(wplot,oplots,outplot=options.outplot)
+if options.plot: 
+	filetask.plotplot(wplot,oplots,outplot=options.outplot)