projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31c6010
)
python/demos/demo_source_simple.py: fix indentation
author
Paul Brossier
<piem@piem.org>
Sat, 27 Aug 2016 08:37:26 +0000
(10:37 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 27 Aug 2016 08:37:26 +0000
(10:37 +0200)
python/demos/demo_source_simple.py
patch
|
blob
|
history
diff --git
a/python/demos/demo_source_simple.py
b/python/demos/demo_source_simple.py
index
e966032
..
46bd8be
100644
(file)
--- 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]))