Changeset 1c24da5
- Timestamp:
- Nov 17, 2011, 2:07:44 AM (13 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:
- d7bce3c
- Parents:
- 7ce0701
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/cvec.c
r7ce0701 r1c24da5 24 24 cvec_t * new_cvec( uint_t length) { 25 25 cvec_t * s = AUBIO_NEW(cvec_t); 26 uint_t j;27 26 s->length = length/2 + 1; 28 27 s->norm = AUBIO_ARRAY(smpl_t,s->length); 29 28 s->phas = AUBIO_ARRAY(smpl_t,s->length); 30 for (j=0; j< s->length; j++) {31 s->norm[j]=0.;32 s->phas[j]=0.;33 }34 29 return s; 35 30 } -
src/fvec.c
r7ce0701 r1c24da5 24 24 fvec_t * new_fvec( uint_t length) { 25 25 fvec_t * s = AUBIO_NEW(fvec_t); 26 uint_t j;27 26 s->length = length; 28 27 s->data = AUBIO_ARRAY(smpl_t, s->length); 29 for (j=0; j< s->length; j++) {30 s->data[j]=0.;31 }32 28 return s; 33 29 }
Note: See TracChangeset
for help on using the changeset viewer.