shithub: aubio

Download patch

ref: 67e16c2fb94aabd402cdef365ef6393373170773
parent: d0faeca99e625a46e100d352e86d17b1c684d663
author: Paul Brossier <piem@piem.org>
date: Tue May 10 15:35:29 EDT 2016

python/demos/demo_spectrogram.py: fix indent

--- a/python/demos/demo_spectrogram.py
+++ b/python/demos/demo_spectrogram.py
@@ -66,12 +66,12 @@
 if __name__ == '__main__':
     if len(sys.argv) < 2:
         print "Usage: %s <filename>" % sys.argv[0]
-  else:
-      for soundfile in sys.argv[1:]:
-          fig = get_spectrogram(soundfile)
-          # display graph
-          fig.show()
-          #outimage = os.path.basename(soundfile) + '.png'
-          #print ("writing: " + outimage)
-          #plt.savefig(outimage)
-          plt.close()
+    else:
+        for soundfile in sys.argv[1:]:
+            fig = get_spectrogram(soundfile)
+            # display graph
+            fig.show()
+            #outimage = os.path.basename(soundfile) + '.png'
+            #print ("writing: " + outimage)
+            #plt.savefig(outimage)
+            plt.close()