- Timestamp:
- Aug 1, 2015, 10:28:38 AM (9 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:
- 482fab8
- Parents:
- 10482d2
- Location:
- src/pitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitchyin.c
r10482d2 re391790 146 146 } 147 147 tmp2 += yin->data[tau]; 148 yin->data[tau] *= tau / tmp2; 148 if (tmp2 != 0) { 149 yin->data[tau] *= tau / tmp2; 150 } else { 151 yin->data[tau] = 1.; 152 } 149 153 period = tau - 3; 150 154 if (tau > 4 && (yin->data[period] < tol) && -
src/pitch/pitchyinfft.c
r10482d2 re391790 136 136 // and the cumulative mean normalized difference function 137 137 tmp += yin->data[tau]; 138 yin->data[tau] *= tau / tmp; 138 if (tmp != 0) { 139 yin->data[tau] *= tau / tmp; 140 } else { 141 yin->data[tau] = 1.; 142 } 139 143 } 140 144 // find best candidates
Note: See TracChangeset
for help on using the changeset viewer.