From: Paul Brossier Date: Sat, 27 Aug 2016 08:37:26 +0000 (+0200) Subject: python/demos/demo_source_simple.py: fix indentation X-Git-Tag: 0.4.4~239 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=30e080c5235922a9b784b5baba41393bb6b1dfcc;p=aubio.git python/demos/demo_source_simple.py: fix indentation --- diff --git a/python/demos/demo_source_simple.py b/python/demos/demo_source_simple.py index e9660327..46bd8bee 100644 --- a/python/demos/demo_source_simple.py +++ b/python/demos/demo_source_simple.py @@ -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]))