Changeset 098925a5


Ignore:
Timestamp:
Feb 14, 2014, 11:20:46 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
8f14c6e
Parents:
97d77da
Message:

python/demos/demo_pysoundcard_record.py: normalize downmixed signal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_pysoundcard_record.py

    r97d77da r098925a5  
    1717        vec = s.read(hop_size)
    1818        # mix down to mono
    19         mono_vec = vec.sum(-1)
     19        mono_vec = vec.sum(-1) / float(s.input_channels)
    2020        g(mono_vec, hop_size)
    21         total_frames += hop_size 
     21        total_frames += hop_size
    2222    s.stop()
    2323
Note: See TracChangeset for help on using the changeset viewer.