Changeset 1e2c82f for src


Ignore:
Timestamp:
Oct 2, 2009, 1:09:46 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:
2f64b0e
Parents:
d57c879
Message:

rename vec_max and vec_max_elem to fvec_max fvec_max_elem

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    rd57c879 r1e2c82f  
    102102}
    103103
    104 smpl_t vec_max(fvec_t *s) {
     104smpl_t fvec_max(fvec_t *s) {
    105105  uint_t i,j;
    106106  smpl_t tmp = 0.0f;
     
    131131}
    132132
    133 uint_t vec_max_elem(fvec_t *s) {
     133uint_t fvec_max_elem(fvec_t *s) {
    134134  uint_t i,j=0, pos=0.;
    135135  smpl_t tmp = 0.0f;
  • src/mathutils.h

    rd57c879 r1e2c82f  
    7373 * \bug mono
    7474 */
    75 smpl_t vec_max(fvec_t *s);
     75smpl_t fvec_max(fvec_t *s);
    7676/** returns the min of a vector
    7777 *
     
    8888 * \bug mono
    8989 */
    90 uint_t vec_max_elem(fvec_t *s);
     90uint_t fvec_max_elem(fvec_t *s);
    9191/** implement 'fftshift' like function
    9292 *
  • src/tempo/beattracking.c

    rd57c879 r1e2c82f  
    169169
    170170  /* find non-zero Rayleigh period */
    171   maxindex = vec_max_elem (bt->acfout);
     171  maxindex = fvec_max_elem (bt->acfout);
    172172  bt->rp = maxindex ? vec_quadint (bt->acfout, maxindex, 1) : 1;
    173173  //rp = (maxindex==127) ? 43 : maxindex; //rayparam
     
    196196
    197197  /* find Rayleigh period */
    198   maxindex = vec_max_elem (bt->phout);
     198  maxindex = fvec_max_elem (bt->phout);
    199199  if (maxindex >= winlen - 1) {
    200200#if AUBIO_BEAT_WARNINGS
     
    305305    }
    306306    fvec_weight (acfout, bt->gwv);
    307     gp = vec_quadint (acfout, vec_max_elem (acfout), 1);
     307    gp = vec_quadint (acfout, fvec_max_elem (acfout), 1);
    308308    /*
    309309       while(gp<32) gp =gp*2;
     
    419419{
    420420  if (bt->gp) {
    421     return vec_max (bt->acfout);
     421    return fvec_max (bt->acfout);
    422422  } else {
    423423    return 0.;
  • src/utils/hist.c

    rd57c879 r1e2c82f  
    2020#include "fvec.h"
    2121#include "utils/scale.h"
    22 #include "mathutils.h" //vec_min vec_max
     22#include "mathutils.h" //vec_min fvec_max
    2323#include "utils/hist.h"
    2424
     
    110110  sint_t tmp = 0;
    111111  smpl_t ilow = vec_min(input);
    112   smpl_t ihig = vec_max(input);
     112  smpl_t ihig = fvec_max(input);
    113113  smpl_t step = (ihig-ilow)/(smpl_t)(s->nelems);
    114114
Note: See TracChangeset for help on using the changeset viewer.