Changeset 5b41ef9 for src/pitch


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
  • src/pitch/pitchmcomb.c

    rc1ddeb8 r5b41ef9  
    112112    newmag->data[j] = fftgrain->norm[j];
    113113  /* detect only if local energy > 10. */
    114   //if (fvec_local_energy(newmag) * newmag->length > 10.) {
     114  //if (aubio_level_lin (newmag) * newmag->length > 10.) {
    115115  //hfc = fvec_local_hfc(newmag); //not used
    116116  aubio_pitchmcomb_spectral_pp (p, newmag);
     
    147147    newmag->data[j] = fftgrain->norm[j];
    148148  /* detect only if local energy > 10. */
    149   if (fvec_local_energy (newmag) * newmag->length > 10.) {
     149  if (aubio_level_lin (newmag) * newmag->length > 10.) {
    150150    /* hfc = fvec_local_hfc(newmag); do not use */
    151151    aubio_pitchmcomb_spectral_pp (p, newmag);
Note: See TracChangeset for help on using the changeset viewer.