Changes in src/pitch/pitchyinfft.c [88fee8f:c21acb9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitchyinfft.c
r88fee8f rc21acb9 58 58 new_aubio_pitchyinfft (uint_t samplerate, uint_t bufsize) 59 59 { 60 uint_t i = 0, j = 1; 61 smpl_t freq = 0, a0 = 0, a1 = 0, f0 = 0, f1 = 0; 60 62 aubio_pitchyinfft_t *p = AUBIO_NEW (aubio_pitchyinfft_t); 61 63 p->winput = new_fvec (bufsize); … … 67 69 p->win = new_aubio_window ("hanningz", bufsize); 68 70 p->weight = new_fvec (bufsize / 2 + 1); 69 uint_t i = 0, j = 1;70 smpl_t freq = 0, a0 = 0, a1 = 0, f0 = 0, f1 = 0;71 71 for (i = 0; i < p->weight->length; i++) { 72 72 freq = (smpl_t) i / (smpl_t) bufsize *(smpl_t) samplerate;
Note: See TracChangeset
for help on using the changeset viewer.