Changeset d0f0d55


Ignore:
Timestamp:
Mar 10, 2017, 8:17:36 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.