Changeset 8b28524


Ignore:
Timestamp:
Oct 2, 2009, 1:05:26 AM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
d57c879
Parents:
47eabeb
Message:

src/mathutils.c: rename vec_mean to fvec_mean

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r47eabeb r8b28524  
    8484}
    8585
    86 smpl_t vec_mean(fvec_t *s) {
     86smpl_t fvec_mean(fvec_t *s) {
    8787  uint_t i,j;
    8888  smpl_t tmp = 0.0f;
  • src/mathutils.h

    r47eabeb r8b28524  
    6868 * \bug mono
    6969 */
    70 smpl_t vec_mean(fvec_t *s);
     70smpl_t fvec_mean(fvec_t *s);
    7171/** returns the max of a vector
    7272 *
  • src/onset/onsetdetection.c

    r47eabeb r8b28524  
    120120    /* its mean is the result */
    121121    onset->data[i][0] = aubio_hist_mean(o->histog); 
    122     //onset->data[i][0] = vec_mean(o->dev1);
     122    //onset->data[i][0] = fvec_mean(o->dev1);
    123123  }
    124124}
  • src/onset/peakpick.c

    r47eabeb r8b28524  
    9494        /* calculate mean and median for onset_proc */
    9595        /* for (i=0;i<onset_proc->channels;i++) { */
    96         mean = vec_mean(onset_proc);
     96        mean = fvec_mean(onset_proc);
    9797        /* copy to scratch */
    9898        for (j = 0; j < length; j++)
     
    161161        t->win_pre   = 1;
    162162
    163         t->thresholdfn = (aubio_thresholdfn_t)(vec_median); /* (vec_mean); */
     163        t->thresholdfn = (aubio_thresholdfn_t)(vec_median); /* (fvec_mean); */
    164164        t->pickerfn = (aubio_pickerfn_t)(vec_peakpick);
    165165
  • swig/aubio.i

    r47eabeb r8b28524  
    130130fvec_t * new_aubio_window(uint_t size, aubio_window_type wintype);
    131131smpl_t aubio_unwrap2pi (smpl_t phase);
    132 smpl_t vec_mean(fvec_t *s);
     132smpl_t fvec_mean(fvec_t *s);
    133133smpl_t vec_max(fvec_t *s);
    134134smpl_t vec_min(fvec_t *s);
Note: See TracChangeset for help on using the changeset viewer.