optional plotting
authorPaul Brossier <piem@altern.org>
Thu, 16 Mar 2006 15:51:46 +0000 (15:51 +0000)
committerPaul Brossier <piem@altern.org>
Thu, 16 Mar 2006 15:51:46 +0000 (15:51 +0000)
optional plotting

python/aubiopitch

index a6c01d5259455657a8887c94c9daface8df1d55f..07cdcf7cca97bb59940882f83ca350f031ef008c 100755 (executable)
@@ -109,6 +109,7 @@ for i in range(len(modes)):
        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)