Changeset 1e2c82f
- Timestamp:
- Oct 2, 2009, 1:09:46 AM (15 years ago)
- 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
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
rd57c879 r1e2c82f 102 102 } 103 103 104 smpl_t vec_max(fvec_t *s) {104 smpl_t fvec_max(fvec_t *s) { 105 105 uint_t i,j; 106 106 smpl_t tmp = 0.0f; … … 131 131 } 132 132 133 uint_t vec_max_elem(fvec_t *s) {133 uint_t fvec_max_elem(fvec_t *s) { 134 134 uint_t i,j=0, pos=0.; 135 135 smpl_t tmp = 0.0f; -
src/mathutils.h
rd57c879 r1e2c82f 73 73 * \bug mono 74 74 */ 75 smpl_t vec_max(fvec_t *s);75 smpl_t fvec_max(fvec_t *s); 76 76 /** returns the min of a vector 77 77 * … … 88 88 * \bug mono 89 89 */ 90 uint_t vec_max_elem(fvec_t *s);90 uint_t fvec_max_elem(fvec_t *s); 91 91 /** implement 'fftshift' like function 92 92 * -
src/tempo/beattracking.c
rd57c879 r1e2c82f 169 169 170 170 /* find non-zero Rayleigh period */ 171 maxindex = vec_max_elem (bt->acfout);171 maxindex = fvec_max_elem (bt->acfout); 172 172 bt->rp = maxindex ? vec_quadint (bt->acfout, maxindex, 1) : 1; 173 173 //rp = (maxindex==127) ? 43 : maxindex; //rayparam … … 196 196 197 197 /* find Rayleigh period */ 198 maxindex = vec_max_elem (bt->phout);198 maxindex = fvec_max_elem (bt->phout); 199 199 if (maxindex >= winlen - 1) { 200 200 #if AUBIO_BEAT_WARNINGS … … 305 305 } 306 306 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); 308 308 /* 309 309 while(gp<32) gp =gp*2; … … 419 419 { 420 420 if (bt->gp) { 421 return vec_max (bt->acfout);421 return fvec_max (bt->acfout); 422 422 } else { 423 423 return 0.; -
src/utils/hist.c
rd57c879 r1e2c82f 20 20 #include "fvec.h" 21 21 #include "utils/scale.h" 22 #include "mathutils.h" //vec_min vec_max22 #include "mathutils.h" //vec_min fvec_max 23 23 #include "utils/hist.h" 24 24 … … 110 110 sint_t tmp = 0; 111 111 smpl_t ilow = vec_min(input); 112 smpl_t ihig = vec_max(input);112 smpl_t ihig = fvec_max(input); 113 113 smpl_t step = (ihig-ilow)/(smpl_t)(s->nelems); 114 114 -
swig/aubio.i
rd57c879 r1e2c82f 131 131 smpl_t aubio_unwrap2pi (smpl_t phase); 132 132 smpl_t fvec_mean(fvec_t *s); 133 smpl_t vec_max(fvec_t *s);133 smpl_t fvec_max(fvec_t *s); 134 134 smpl_t vec_min(fvec_t *s); 135 135 uint_t vec_min_elem(fvec_t *s); 136 uint_t vec_max_elem(fvec_t *s);136 uint_t fvec_max_elem(fvec_t *s); 137 137 void vec_shift(fvec_t *s); 138 138 smpl_t vec_sum(fvec_t *s); -
tests/src/test-filterbank.c
rd57c879 r1e2c82f 21 21 } 22 22 23 if ( vec_max (coeffs) != 0.) {23 if (fvec_max (coeffs) != 0.) { 24 24 return -1; 25 25 }
Note: See TracChangeset
for help on using the changeset viewer.