- Timestamp:
- Jul 23, 2006, 12:54:56 PM (18 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:
- ceed6dc
- Parents:
- fa4400e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitchyinfft.c
rfa4400e r91879d9 23 23 #include "pitchyinfft.h" 24 24 25 /** pitch yinfft structure */ 25 26 struct _aubio_pitchyinfft_t { 26 uint_t bufsize; 27 uint_t rate; 28 fvec_t * win; 29 fvec_t * winput; 30 cvec_t * res; 31 fvec_t * sqrmag; 32 fvec_t * weight; 33 cvec_t * fftout; 34 aubio_mfft_t * fft; 35 fvec_t * yinfft; 27 fvec_t * win; /**< temporal weighting window */ 28 fvec_t * winput; /**< windowed spectrum */ 29 cvec_t * res; /**< complex vector to compute square difference function */ 30 fvec_t * sqrmag; /**< square difference function */ 31 fvec_t * weight; /**< spectral weighting window (psychoacoustic model) */ 32 cvec_t * fftout; /**< Fourier transform output */ 33 aubio_mfft_t * fft; /**< fft object to compute square difference function */ 34 fvec_t * yinfft; /**< Yin function */ 36 35 }; 37 36 … … 49 48 { 50 49 aubio_pitchyinfft_t * p = AUBIO_NEW(aubio_pitchyinfft_t); 51 p->bufsize = bufsize;52 50 p->winput = new_fvec(bufsize,1); 53 51 p->fft = new_aubio_mfft(bufsize, 1); … … 125 123 if (yin->data[0][tau] < tol) { 126 124 /* no interpolation */ 127 //return tau +2;125 //return tau; 128 126 /* 3 point quadratic interpolation */ 129 127 //return vec_quadint_min(yin,tau,1);
Note: See TracChangeset
for help on using the changeset viewer.