Changeset 5b41ef9 for examples


Ignore:
Timestamp:
Nov 17, 2013, 6:23:34 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:
af3cfb3
Parents:
c1ddeb8
Message:

src/mathutils.h: move fvec_local_energy to aubio_level_lin, move to musicutils.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiopitch.c

    rc1ddeb8 r5b41ef9  
    4141      aubio_pitch_do (o, ibuf, pitch);
    4242      smpl_t freq = fvec_read_sample(pitch, 0);
    43       smpl_t amp = powf(10., aubio_db_spl(ibuf)*.05 );
    44       aubio_wavetable_set_amp ( wavetable, amp );
     43      aubio_wavetable_set_amp ( wavetable, aubio_level_lin (ibuf) );
    4544      if (freq != 0.0) {
    4645        aubio_wavetable_set_freq ( wavetable, freq );
Note: See TracChangeset for help on using the changeset viewer.