Changeset d0f0d55


Ignore:
Timestamp:
Mar 10, 2017, 8:17:36 PM (8 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, sampler
Children:
ce79a9e
Parents:
b799241
Message:

examples/aubioonset.c: avoid saturation in when using --mix-input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    rb799241 rd0f0d55  
    4444    aubio_wavetable_stop ( wavetable );
    4545  }
    46   if (mix_input)
     46  if (mix_input) {
    4747    aubio_wavetable_do (wavetable, ibuf, obuf);
    48   else
     48    fvec_clamp(obuf, 1.);
     49  } else {
    4950    aubio_wavetable_do (wavetable, obuf, obuf);
     51  }
    5052}
    5153
Note: See TracChangeset for help on using the changeset viewer.