Changeset f218f29 for src/phasevoc.c
- Timestamp:
- Nov 7, 2007, 5:03:59 PM (16 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:
- 10cf306
- Parents:
- ef7df76 (diff), 4368223 (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/phasevoc.c
ref7df76 rf218f29 19 19 20 20 #include "aubio_priv.h" 21 #include "sample.h" 21 #include "fvec.h" 22 #include "cvec.h" 22 23 #include "fft.h" 23 24 #include "mathutils.h" … … 29 30 uint_t hop_s; /** overlap step */ 30 31 uint_t channels; /** number of channels */ 31 aubio_ mfft_t * fft; /** spectral data*/32 fvec_t * synth; /** cur output grain [win_s] */33 fvec_t * synthold; /** last input frame [win_s-hop_s] */34 fvec_t * data; /** current input grain [win_s] */35 fvec_t * dataold; /** last input frame [win_s-hop_s] */36 smpl_t * w; 32 aubio_fft_t * fft; /** fft object */ 33 fvec_t * synth; /** cur output grain [win_s] */ 34 fvec_t * synthold; /** last input frame [win_s-hop_s] */ 35 fvec_t * data; /** current input grain [win_s] */ 36 fvec_t * dataold; /** last input frame [win_s-hop_s] */ 37 smpl_t * w; /** grain window [win_s] */ 37 38 }; 38 39 … … 58 59 vec_shift(pv->data); 59 60 /* calculate fft */ 60 aubio_ mfft_do (pv->fft,pv->data,fftgrain);61 aubio_fft_do (pv->fft,pv->data,fftgrain); 61 62 } 62 63 … … 64 65 uint_t i; 65 66 /* calculate rfft */ 66 aubio_ mfft_rdo(pv->fft,fftgrain,pv->synth);67 aubio_fft_rdo(pv->fft,fftgrain,pv->synth); 67 68 /* unshift */ 68 69 vec_shift(pv->synth); … … 88 89 } 89 90 90 pv->fft = new_aubio_ mfft(win_s,channels);91 pv->fft = new_aubio_fft(win_s,channels); 91 92 92 93 /* remember old */ … … 112 113 del_fvec(pv->dataold); 113 114 del_fvec(pv->synthold); 114 del_aubio_ mfft(pv->fft);115 del_aubio_fft(pv->fft); 115 116 AUBIO_FREE(pv->w); 116 117 AUBIO_FREE(pv);
Note: See TracChangeset
for help on using the changeset viewer.