Changeset 2f64b0e
- Timestamp:
- Oct 2, 2009, 1:11:37 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:
- 5c4ec3c
- Parents:
- 1e2c82f
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
r1e2c82f r2f64b0e 111 111 } 112 112 113 smpl_t vec_min(fvec_t *s) {113 smpl_t fvec_min(fvec_t *s) { 114 114 uint_t i,j; 115 115 smpl_t tmp = s->data[0][0]; … … 120 120 } 121 121 122 uint_t vec_min_elem(fvec_t *s) {122 uint_t fvec_min_elem(fvec_t *s) { 123 123 uint_t i,j=0, pos=0.; 124 124 smpl_t tmp = s->data[0][0]; … … 184 184 smpl_t mini = 0.; 185 185 uint_t length = mag->length, i=0, j; 186 mini = vec_min(mag);186 mini = fvec_min(mag); 187 187 for (j=0;j<length;j++) { 188 188 mag->data[i][j] -= mini; -
src/mathutils.h
r1e2c82f r2f64b0e 78 78 * \bug mono 79 79 */ 80 smpl_t vec_min(fvec_t *s);80 smpl_t fvec_min(fvec_t *s); 81 81 /** returns the index of the min of a vector 82 82 * 83 83 * \bug mono 84 84 */ 85 uint_t vec_min_elem(fvec_t *s);85 uint_t fvec_min_elem(fvec_t *s); 86 86 /** returns the index of the max of a vector 87 87 * -
src/pitch/pitchyin.c
r1e2c82f r2f64b0e 110 110 } 111 111 } 112 return vec_quadint(yin, vec_min_elem(yin),1);112 return vec_quadint(yin,fvec_min_elem(yin),1); 113 113 //return 0; 114 114 } -
src/pitch/pitchyinfft.c
r1e2c82f r2f64b0e 120 120 yin->data[0][tau] *= tau/tmp; 121 121 } 122 tau = vec_min_elem(yin);122 tau = fvec_min_elem(yin); 123 123 if (yin->data[0][tau] < tol) { 124 124 /* no interpolation */ -
src/utils/hist.c
r1e2c82f r2f64b0e 20 20 #include "fvec.h" 21 21 #include "utils/scale.h" 22 #include "mathutils.h" // vec_min fvec_max22 #include "mathutils.h" //fvec_min fvec_max 23 23 #include "utils/hist.h" 24 24 … … 109 109 uint_t i,j; 110 110 sint_t tmp = 0; 111 smpl_t ilow = vec_min(input);111 smpl_t ilow = fvec_min(input); 112 112 smpl_t ihig = fvec_max(input); 113 113 smpl_t step = (ihig-ilow)/(smpl_t)(s->nelems); -
swig/aubio.i
r1e2c82f r2f64b0e 132 132 smpl_t fvec_mean(fvec_t *s); 133 133 smpl_t fvec_max(fvec_t *s); 134 smpl_t vec_min(fvec_t *s);135 uint_t vec_min_elem(fvec_t *s);134 smpl_t fvec_min(fvec_t *s); 135 uint_t fvec_min_elem(fvec_t *s); 136 136 uint_t fvec_max_elem(fvec_t *s); 137 137 void vec_shift(fvec_t *s); -
tests/src/test-filterbank.c
r1e2c82f r2f64b0e 25 25 } 26 26 27 if ( vec_min (coeffs) != 0.) {27 if (fvec_min (coeffs) != 0.) { 28 28 return -1; 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.