Changeset d84d19e for src/spectral
- Timestamp:
- Sep 25, 2009, 4:20:27 AM (15 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:
- ff9d00c
- Parents:
- e4284c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/phasevoc.c
re4284c9 rd84d19e 35 35 fvec_t * data; /** current input grain [win_s] */ 36 36 fvec_t * dataold; /** last input frame [win_s-hop_s] */ 37 smpl_t * w; /** grain window [win_s] */37 fvec_t * w; /** grain window [win_s] */ 38 38 }; 39 39 … … 54 54 datanew->data[i],pv->win_s,pv->hop_s); 55 55 /* windowing */ 56 f or (j=0; j<pv->win_s; j++) pv->data->data[i][j] *= pv->w[j];56 fvec_weight(pv->data, pv->w); 57 57 } 58 58 /* shift */ … … 96 96 pv->dataold = new_fvec (win_s-hop_s, channels); 97 97 pv->synthold = new_fvec (win_s-hop_s, channels); 98 pv->w = AUBIO_ARRAY(smpl_t,win_s); 99 aubio_window(pv->w,win_s,aubio_win_hanningz); 98 pv->w = new_aubio_window (win_s, aubio_win_hanningz); 100 99 101 100 pv->channels = channels; … … 111 110 del_fvec(pv->dataold); 112 111 del_fvec(pv->synthold); 112 del_fvec(pv->w); 113 113 del_aubio_fft(pv->fft); 114 AUBIO_FREE(pv->w);115 114 AUBIO_FREE(pv); 116 115 }
Note: See TracChangeset
for help on using the changeset viewer.