- Timestamp:
- Sep 12, 2009, 12:08:54 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:
- fbe2cd2
- Parents:
- 68a3fc9
- Location:
- src/pitch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitchmcomb.c
r68a3fc9 rc5c0c98 273 273 count += ispeak; 274 274 spectral_peaks[count-1].bin = j; 275 spectral_peaks[count-1].ebin = vec_quadint(X, j) - 1.;275 spectral_peaks[count-1].ebin = vec_quadint(X, j, 1) - 1.; 276 276 } 277 277 } -
src/pitch/pitchyin.c
r68a3fc9 rc5c0c98 107 107 if(tau > 4 && (yin->data[c][period] < tol) && 108 108 (yin->data[c][period] < yin->data[c][period+1])) { 109 return vec_quadint _min(yin,period,1);109 return vec_quadint(yin,period,1); 110 110 } 111 111 } 112 return vec_quadint _min(yin,vec_min_elem(yin),1);112 return vec_quadint(yin,vec_min_elem(yin),1); 113 113 //return 0; 114 114 } -
src/pitch/pitchyinfft.c
r68a3fc9 rc5c0c98 129 129 /* additional check for (unlikely) octave doubling in higher frequencies */ 130 130 if (tau>35) { 131 return vec_quadint _min(yin,tau,1);131 return vec_quadint(yin,tau,1); 132 132 } else { 133 133 /* should compare the minimum value of each interpolated peaks */ 134 134 halfperiod = FLOOR(tau/2+.5); 135 135 if (yin->data[0][halfperiod] < tol) 136 return vec_quadint _min(yin,halfperiod,1);136 return vec_quadint(yin,halfperiod,1); 137 137 else 138 return vec_quadint _min(yin,tau,1);138 return vec_quadint(yin,tau,1); 139 139 } 140 140 } else
Note: See TracChangeset
for help on using the changeset viewer.