Changeset c621415
- Timestamp:
- Jul 13, 2006, 5:57:21 PM (19 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:
- e43c018
- Parents:
- 714380d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onsetdetection.c
r714380d rc621415 40 40 }; 41 41 42 43 static aubio_onsetdetection_t * aubio_onsetdetection_alloc(aubio_onsetdetection_type type, uint_t size, uint_t channels);44 42 45 43 /* Energy based onset detection function */ … … 193 191 } 194 192 195 /* Allocate memory for an onset detection */ 193 /* Allocate memory for an onset detection 194 * depending on the choosen type, allocate memory as needed 195 */ 196 196 aubio_onsetdetection_t * 197 197 new_aubio_onsetdetection (aubio_onsetdetection_type type, 198 uint_t size, uint_t channels){199 return aubio_onsetdetection_alloc(type,size,channels);200 }201 202 /* depending on the choosen type, allocate memory as needed */203 aubio_onsetdetection_t *204 aubio_onsetdetection_alloc (aubio_onsetdetection_type type,205 198 uint_t size, uint_t channels){ 206 199 aubio_onsetdetection_t * o = AUBIO_NEW(aubio_onsetdetection_t); … … 308 301 del_aubio_hist(o->histog); 309 302 break; 303 case aubio_onset_kl: 304 del_fvec(o->oldmag); 305 break; 306 case aubio_onset_mkl: 307 del_fvec(o->oldmag); 308 break; 310 309 default: 311 310 break;
Note: See TracChangeset
for help on using the changeset viewer.