Changeset 83b385f for src/spectral
- Timestamp:
- Jul 11, 2012, 10:44:27 PM (12 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:
- 93004d5
- Parents:
- 312826c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/specdesc.c
r312826c r83b385f 312 312 } 313 313 314 /* this switch could be in its own function to change between315 * detections on the fly. this would need getting rid of the switch316 * above and always allocate all the structure */317 318 314 switch(onset_type) { 319 315 case aubio_onset_energy: … … 341 337 o->funcpointer = aubio_specdesc_specflux; 342 338 break; 343 // for for the additional descriptors. these don't need additional memory344 339 case aubio_specmethod_centroid: 345 340 o->funcpointer = aubio_specdesc_centroid; … … 372 367 void del_aubio_specdesc (aubio_specdesc_t *o){ 373 368 switch(o->onset_type) { 374 /* for both energy and hfc, only fftgrain->norm is required */375 369 case aubio_onset_energy: 376 370 break; 377 371 case aubio_onset_hfc: 378 372 break; 379 /* the other approaches will need some more memory spaces */380 373 case aubio_onset_complex: 381 374 del_fvec(o->oldmag);
Note: See TracChangeset
for help on using the changeset viewer.