Changeset cd77c15


Ignore:
Timestamp:
Oct 15, 2009, 6:49:47 PM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
fe163ad
Parents:
b4f5967
Message:

src/onset/onsetdetection.c: add 'default' method, set it to hfc, set method to default when parsing the string fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onsetdetection.c

    rb4f5967 rcd77c15  
    134134        aubio_onset_mkl,            /**< modified Kullback Liebler */
    135135        aubio_onset_specflux,       /**< spectral flux */
     136        aubio_onset_default = aubio_onset_hfc, /**< default mode, set to hfc */
    136137} aubio_onsetdetection_type;
    137138
     
    340341  else if (strcmp (onset_mode, "specflux") == 0)
    341342      onset_type = aubio_onset_specflux;
     343  else if (strcmp (onset_mode, "default") == 0)
     344      onset_type = aubio_onset_default;
    342345  else {
    343346      AUBIO_ERR("unknown onset type.\n");
    344       return NULL;
     347      onset_type = aubio_onset_default;
    345348  }
    346349  switch(onset_type) {
Note: See TracChangeset for help on using the changeset viewer.