- Timestamp:
- Nov 21, 2007, 4:53:13 PM (17 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:
- 66a1b955
- Parents:
- b050e8e (diff), 15b97d9 (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. - Location:
- src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fft.c
rb050e8e r70585a5 46 46 uint_t fft_size; 47 47 real_t *in, *out; 48 fftw_plan 48 fftw_plan pfw, pbw; 49 49 fft_data_t * specdata; /* complex spectral data */ 50 50 fvec_t * compspec; … … 61 61 /* create plans */ 62 62 #ifdef HAVE_COMPLEX_H 63 s->fft_size = winsize/2 +1;63 s->fft_size = winsize/2 + 1; 64 64 s->specdata = (fft_data_t*)fftw_malloc(sizeof(fft_data_t)*s->fft_size); 65 65 s->pfw = fftw_plan_dft_r2c_1d(winsize, s->in, s->specdata, FFTW_ESTIMATE); … … 102 102 } 103 103 fftw_execute(s->pfw); 104 #if HAVE_COMPLEX_H104 #ifdef HAVE_COMPLEX_H 105 105 compspec->data[i][0] = REAL(s->specdata[0]); 106 106 for (j = 1; j < s->fft_size -1 ; j++) { … … 121 121 const smpl_t renorm = 1./(smpl_t)s->winsize; 122 122 for (i = 0; i < compspec->channels; i++) { 123 #if HAVE_COMPLEX_H123 #ifdef HAVE_COMPLEX_H 124 124 s->specdata[0] = compspec->data[i][0]; 125 125 for (j=1; j < s->fft_size - 1; j++) { -
src/onsetdetection.c
rb050e8e r70585a5 284 284 } 285 285 286 void aubio_onsetdetection_free (aubio_onsetdetection_t *o){287 del_aubio_onsetdetection(o);288 }289 290 286 void del_aubio_onsetdetection (aubio_onsetdetection_t *o){ 291 287 -
src/onsetdetection.h
rb050e8e r70585a5 161 161 */ 162 162 void del_aubio_onsetdetection(aubio_onsetdetection_t *o); 163 /** deletion of an onset detection object (obsolete)164 165 \param o onset detection object as returned by new_aubio_onsetdetection()166 167 */168 void aubio_onsetdetection_free(aubio_onsetdetection_t *o);169 170 163 171 164 #ifdef __cplusplus -
src/pitchyinfft.c
rb050e8e r70585a5 138 138 } 139 139 } else 140 return 0 ;140 return 0.; 141 141 } 142 142
Note: See TracChangeset
for help on using the changeset viewer.