projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97d77da
)
python/demos/demo_pysoundcard_record.py: normalize downmixed signal
author
Paul Brossier
<piem@piem.org>
Fri, 14 Feb 2014 22:20:46 +0000
(19:20 -0300)
committer
Paul Brossier
<piem@piem.org>
Fri, 14 Feb 2014 22:20:46 +0000
(19:20 -0300)
python/demos/demo_pysoundcard_record.py
patch
|
blob
|
history
diff --git
a/python/demos/demo_pysoundcard_record.py
b/python/demos/demo_pysoundcard_record.py
index
ff9815c
..
56a7fbc
100755
(executable)
--- a/
python/demos/demo_pysoundcard_record.py
+++ b/
python/demos/demo_pysoundcard_record.py
@@
-16,9
+16,9
@@
def record_sink(sink_path):
while total_frames < duration * s.sample_rate:
vec = s.read(hop_size)
# mix down to mono
- mono_vec = vec.sum(-1)
+ mono_vec = vec.sum(-1)
/ float(s.input_channels)
g(mono_vec, hop_size)
- total_frames += hop_size
+ total_frames += hop_size
s.stop()
if __name__ == '__main__':