Changeset d57d1de for src/pitchyinfft.c
- Timestamp:
- Nov 7, 2007, 4:51:42 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:
- 4368223
- Parents:
- e00f769 (diff), 038852a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitchyinfft.c
re00f769 rd57d1de 31 31 fvec_t * weight; /**< spectral weighting window (psychoacoustic model) */ 32 32 cvec_t * fftout; /**< Fourier transform output */ 33 aubio_ mfft_t * fft; /**< fft object to compute square difference function */33 aubio_fft_t * fft; /**< fft object to compute square difference function */ 34 34 fvec_t * yinfft; /**< Yin function */ 35 35 }; … … 49 49 aubio_pitchyinfft_t * p = AUBIO_NEW(aubio_pitchyinfft_t); 50 50 p->winput = new_fvec(bufsize,1); 51 p->fft = new_aubio_ mfft(bufsize, 1);51 p->fft = new_aubio_fft(bufsize, 1); 52 52 p->fftout = new_cvec(bufsize,1); 53 53 p->sqrmag = new_fvec(bufsize,1); … … 97 97 p->winput->data[0][l] = p->win->data[0][l] * input->data[0][l]; 98 98 } 99 aubio_ mfft_do(p->fft,p->winput,p->fftout);99 aubio_fft_do(p->fft,p->winput,p->fftout); 100 100 for (l=0; l < p->fftout->length; l++){ 101 101 p->sqrmag->data[0][l] = SQR(p->fftout->norm[0][l]); … … 112 112 } 113 113 sum *= 2.; 114 aubio_ mfft_do(p->fft,p->sqrmag,res);114 aubio_fft_do(p->fft,p->sqrmag,res); 115 115 yin->data[0][0] = 1.; 116 116 for (tau=1; tau < yin->length; tau++) { … … 143 143 void del_aubio_pitchyinfft(aubio_pitchyinfft_t *p){ 144 144 del_fvec(p->win); 145 del_aubio_ mfft(p->fft);145 del_aubio_fft(p->fft); 146 146 del_fvec(p->yinfft); 147 147 del_fvec(p->sqrmag);
Note: See TracChangeset
for help on using the changeset viewer.