Ignore:
Timestamp:
Feb 14, 2014, 11:20:46 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, 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.