- Timestamp:
- Oct 2, 2009, 2:05:23 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:
- acf7d30
- Parents:
- 38e9732
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
r38e9732 rc0b295c 181 181 } 182 182 183 void fvec_dc_removal(fvec_t * mag) { 184 smpl_t mini = 0.; 185 uint_t length = mag->length, i=0, j; 186 mini = fvec_min(mag); 187 for (j=0;j<length;j++) { 183 void 184 fvec_min_removal (fvec_t * o) 185 { 186 uint_t i, j; 187 smpl_t mini = fvec_min (mag); 188 for (i = 0; i < o->channels; i++) { 189 for (j = 0; j < o->length; j++) { 188 190 mag->data[i][j] -= mini; 189 191 } 192 } 190 193 } 191 194 -
src/mathutils.h
r38e9732 rc0b295c 120 120 */ 121 121 smpl_t fvec_alpha_norm(fvec_t * DF, smpl_t alpha); 122 /** dc(min)removal */123 void fvec_ dc_removal(fvec_t * mag);122 /** min removal */ 123 void fvec_min_removal(fvec_t * mag); 124 124 /** alpha normalisation */ 125 125 void fvec_alpha_normalise(fvec_t * mag, uint_t alpha); -
src/pitch/pitchmcomb.c
r38e9732 rc0b295c 159 159 mag->data[i][j] = newmag->data[i][j]; 160 160 } 161 fvec_ dc_removal(mag); /* dc removal*/161 fvec_min_removal(mag); /* min removal */ 162 162 fvec_alpha_normalise(mag,p->alpha); /* alpha normalisation */ 163 /* skipped */ /* low pass filtering */163 /* skipped */ /* low pass filtering */ 164 164 /** \bug fvec_moving_thres may write out of bounds */ 165 165 fvec_adapt_thres(mag,tmp,p->win_post,p->win_pre); /* adaptative threshold */
Note: See TracChangeset
for help on using the changeset viewer.