python/demos/demo_source_simple.py: fix indentation
authorPaul Brossier <piem@piem.org>
Sat, 27 Aug 2016 08:37:26 +0000 (10:37 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 27 Aug 2016 08:37:26 +0000 (10:37 +0200)
python/demos/demo_source_simple.py

index e966032..46bd8be 100644 (file)
@@ -7,9 +7,9 @@ s = aubio.source(sys.argv[1], samplerate, hop_size)
 total_frames = 0
 
 while True: # reading loop
-  samples, read = s()
-  total_frames += read
-  if read < hop_size: break # end of file reached
+    samples, read = s()
+    total_frames += read
+    if read < hop_size: break # end of file reached
 
 fmt_string = "read {:d} frames at {:d}Hz from {:s}"
 print (fmt_string.format(total_frames, s.samplerate, sys.argv[1]))