- Timestamp:
- Oct 2, 2009, 1:05:26 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:
- d57c879
- Parents:
- 47eabeb
- Location:
- src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
r47eabeb r8b28524 84 84 } 85 85 86 smpl_t vec_mean(fvec_t *s) {86 smpl_t fvec_mean(fvec_t *s) { 87 87 uint_t i,j; 88 88 smpl_t tmp = 0.0f; -
src/mathutils.h
r47eabeb r8b28524 68 68 * \bug mono 69 69 */ 70 smpl_t vec_mean(fvec_t *s);70 smpl_t fvec_mean(fvec_t *s); 71 71 /** returns the max of a vector 72 72 * -
src/onset/onsetdetection.c
r47eabeb r8b28524 120 120 /* its mean is the result */ 121 121 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); 123 123 } 124 124 } -
src/onset/peakpick.c
r47eabeb r8b28524 94 94 /* calculate mean and median for onset_proc */ 95 95 /* for (i=0;i<onset_proc->channels;i++) { */ 96 mean = vec_mean(onset_proc);96 mean = fvec_mean(onset_proc); 97 97 /* copy to scratch */ 98 98 for (j = 0; j < length; j++) … … 161 161 t->win_pre = 1; 162 162 163 t->thresholdfn = (aubio_thresholdfn_t)(vec_median); /* ( vec_mean); */163 t->thresholdfn = (aubio_thresholdfn_t)(vec_median); /* (fvec_mean); */ 164 164 t->pickerfn = (aubio_pickerfn_t)(vec_peakpick); 165 165
Note: See TracChangeset
for help on using the changeset viewer.