break;
}
- /* this switch could be in its own function to change between
- * detections on the fly. this would need getting rid of the switch
- * above and always allocate all the structure */
-
switch(onset_type) {
case aubio_onset_energy:
o->funcpointer = aubio_specdesc_energy;
case aubio_onset_specflux:
o->funcpointer = aubio_specdesc_specflux;
break;
- // for for the additional descriptors. these don't need additional memory
case aubio_specmethod_centroid:
o->funcpointer = aubio_specdesc_centroid;
break;
void del_aubio_specdesc (aubio_specdesc_t *o){
switch(o->onset_type) {
- /* for both energy and hfc, only fftgrain->norm is required */
case aubio_onset_energy:
break;
case aubio_onset_hfc:
break;
- /* the other approaches will need some more memory spaces */
case aubio_onset_complex:
del_fvec(o->oldmag);
del_fvec(o->dev1);