Changeset 2f64b0e


Ignore:
Timestamp:
Oct 2, 2009, 1:11:37 AM (15 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:
5c4ec3c
Parents:
1e2c82f
Message:

rename vec_min and vec_min_elem to fvec_min and fvec_max_elem

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r1e2c82f r2f64b0e  
    111111}
    112112
    113 smpl_t vec_min(fvec_t *s) {
     113smpl_t fvec_min(fvec_t *s) {
    114114  uint_t i,j;
    115115  smpl_t tmp = s->data[0][0];
     
    120120}
    121121
    122 uint_t vec_min_elem(fvec_t *s) {
     122uint_t fvec_min_elem(fvec_t *s) {
    123123  uint_t i,j=0, pos=0.;
    124124  smpl_t tmp = s->data[0][0];
     
    184184    smpl_t mini = 0.;
    185185    uint_t length = mag->length, i=0, j;
    186     mini = vec_min(mag);
     186    mini = fvec_min(mag);
    187187    for (j=0;j<length;j++) {
    188188      mag->data[i][j] -= mini;
  • src/mathutils.h

    r1e2c82f r2f64b0e  
    7878 * \bug mono
    7979 */
    80 smpl_t vec_min(fvec_t *s);
     80smpl_t fvec_min(fvec_t *s);
    8181/** returns the index of the min of a vector
    8282 *
    8383 * \bug mono
    8484 */
    85 uint_t vec_min_elem(fvec_t *s);
     85uint_t fvec_min_elem(fvec_t *s);
    8686/** returns the index of the max of a vector
    8787 *
  • src/pitch/pitchyin.c

    r1e2c82f r2f64b0e  
    110110    }
    111111  }
    112   return vec_quadint(yin,vec_min_elem(yin),1);
     112  return vec_quadint(yin,fvec_min_elem(yin),1);
    113113  //return 0;
    114114}
  • src/pitch/pitchyinfft.c

    r1e2c82f r2f64b0e  
    120120    yin->data[0][tau] *= tau/tmp;
    121121  }
    122   tau = vec_min_elem(yin);
     122  tau = fvec_min_elem(yin);
    123123  if (yin->data[0][tau] < tol) {
    124124    /* no interpolation */
  • src/utils/hist.c

    r1e2c82f r2f64b0e  
    2020#include "fvec.h"
    2121#include "utils/scale.h"
    22 #include "mathutils.h" //vec_min fvec_max
     22#include "mathutils.h" //fvec_min fvec_max
    2323#include "utils/hist.h"
    2424
     
    109109  uint_t i,j;
    110110  sint_t tmp = 0;
    111   smpl_t ilow = vec_min(input);
     111  smpl_t ilow = fvec_min(input);
    112112  smpl_t ihig = fvec_max(input);
    113113  smpl_t step = (ihig-ilow)/(smpl_t)(s->nelems);
  • swig/aubio.i

    r1e2c82f r2f64b0e  
    132132smpl_t fvec_mean(fvec_t *s);
    133133smpl_t fvec_max(fvec_t *s);
    134 smpl_t vec_min(fvec_t *s);
    135 uint_t vec_min_elem(fvec_t *s);
     134smpl_t fvec_min(fvec_t *s);
     135uint_t fvec_min_elem(fvec_t *s);
    136136uint_t fvec_max_elem(fvec_t *s);
    137137void vec_shift(fvec_t *s);
  • tests/src/test-filterbank.c

    r1e2c82f r2f64b0e  
    2525  }
    2626
    27   if (vec_min (coeffs) != 0.) {
     27  if (fvec_min (coeffs) != 0.) {
    2828    return -1;
    2929  }
Note: See TracChangeset for help on using the changeset viewer.