- Timestamp:
- Jul 21, 2006, 3:52:53 PM (18 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:
- e21208e
- Parents:
- 283d93f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitchyinfft.c
r283d93f rf3f28b1 118 118 for (tau=1; tau < yin->length; tau++) { 119 119 yin->data[0][tau] = sum - 120 res->norm[0][tau +1]*COS(res->phas[0][tau+1]);120 res->norm[0][tau]*COS(res->phas[0][tau]); 121 121 tmp += yin->data[0][tau]; 122 122 yin->data[0][tau] *= tau/tmp; … … 130 130 /* additional check for (unlikely) octave doubling in higher frequencies */ 131 131 if (tau>35) { 132 return vec_quadint_min(yin,tau,1) +1;132 return vec_quadint_min(yin,tau,1); 133 133 } else { 134 134 /* should compare the minimum value of each interpolated peaks */ 135 135 halfperiod = FLOOR(tau/2+.5); 136 136 if (yin->data[0][halfperiod] < tol) 137 return vec_quadint_min(yin,halfperiod,1) +1;137 return vec_quadint_min(yin,halfperiod,1); 138 138 else 139 return vec_quadint_min(yin,tau,1) +1;139 return vec_quadint_min(yin,tau,1); 140 140 } 141 141 } else
Note: See TracChangeset
for help on using the changeset viewer.