Changeset 45134c5 for src/filterbank.c
- Timestamp:
- Sep 8, 2007, 7:11:55 PM (17 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:
- 7a46bf6, e5f6a0b
- Parents:
- 38837b1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/filterbank.c
r38837b1 r45134c5 86 86 fft_peak[0] = lin_peak[0] / nyquist * M; 87 87 88 89 88 for (n = 1; n <= fb->n_filters; n++){ 90 89 /*roll out peak locations - mel, linear and linear on fft window scale */ … … 120 119 /*zero the start of the array*/ 121 120 for(k = 0; k < i; k++) 122 //fft_tables[n][k] = 0.f;123 121 fb->filters[n]->data[0][k]=0.f; 124 122 125 123 /*fill in the rise */ 126 124 for(; i <= fft_peak[n]; i++){ 127 // fft_tables[n][i] = val;128 125 fb->filters[n]->data[0][k]=val; 129 126 val += inc; … … 138 135 /*reverse fill the 'fall' */ 139 136 for(i = next_peak; i > fft_peak[n]; i--){ 140 //fft_tables[n][i] = val;141 137 fb->filters[n]->data[0][k]=val; 142 138 val += inc; … … 145 141 /*zero the rest of the array*/ 146 142 for(k = next_peak + 1; k < fb->win_s; k++) 147 //fft_tables[n][k] = 0.f;148 143 fb->filters[n]->data[0][k]=0.f; 149 144 }
Note: See TracChangeset
for help on using the changeset viewer.