Changeset c8cbf3c
- Timestamp:
- Nov 7, 2007, 5:14:59 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:
- b050e8e
- Parents:
- 10cf306
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitchfcomb.c
r10cf306 rc8cbf3c 32 32 33 33 struct _aubio_pitchfcomb_t { 34 35 36 37 38 39 40 41 42 34 uint_t fftSize; 35 uint_t stepSize; 36 uint_t rate; 37 fvec_t * winput; 38 fvec_t * win; 39 cvec_t * fftOut; 40 fvec_t * fftLastPhase; 41 aubio_fft_t * fft; 42 //aubio_pvoc_t * pvoc; 43 43 }; 44 44 … … 48 48 p->rate = samplerate; 49 49 p->fftSize = bufsize; 50 p->stepSize = hopsize; 50 p->stepSize = hopsize; 51 51 p->winput = new_fvec(bufsize,1); 52 52 p->fftOut = new_cvec(bufsize,1); … … 72 72 73 73 for (k=0; k < input->length; k++){ 74 74 p->winput->data[0][k] = p->win->data[0][k] * input->data[0][k]; 75 75 } 76 76 aubio_fft_do(p->fft,p->winput,p->fftOut); … … 104 104 } 105 105 } 106 106 107 107 k = 0; 108 108 for (l=1; l<MAX_PEAKS && peaks[l].freq > 0.0; l++) { … … 110 110 for (harmonic=5; harmonic>1; harmonic--) { 111 111 if (peaks[0].freq / peaks[l].freq < harmonic+.02 && 112 112 peaks[0].freq / peaks[l].freq > harmonic-.02) { 113 113 if (harmonic > (sint_t)maxharm && 114 114 peaks[0].db < peaks[l].db/2) { 115 115 maxharm = harmonic; 116 116 k = l; 117 117 } 118 118 }
Note: See TracChangeset
for help on using the changeset viewer.