Changeset 5cf415f for examples/utils.c


Ignore:
Timestamp:
Aug 9, 2005, 8:35:14 PM (19 years ago)
Author:
Paul Brossier <piem@altern.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:
b1f723d
Parents:
a29ad46
Message:

protected onset enumerators, factorise python check_modes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    ra29ad46 r5cf415f  
    3030
    3131/* energy,specdiff,hfc,complexdomain,phase */
    32 aubio_onsetdetection_type type_onset  = kl;
    33 aubio_onsetdetection_type type_onset2 = complexdomain;
     32aubio_onsetdetection_type type_onset  = aubio_onset_kl;
     33aubio_onsetdetection_type type_onset2 = aubio_onset_complex;
    3434smpl_t threshold                      = 0.3;
    3535smpl_t threshold2                     = -90.;
     
    140140                        case 'O':   /*onset type*/
    141141                                if (strcmp(optarg,"energy") == 0)
    142                                         type_onset = energy;
     142                                        type_onset = aubio_onset_energy;
    143143                                else if (strcmp(optarg,"specdiff") == 0)
    144                                         type_onset = specdiff;
     144                                        type_onset = aubio_onset_specdiff;
    145145                                else if (strcmp(optarg,"hfc") == 0)
    146                                         type_onset = hfc;
     146                                        type_onset = aubio_onset_hfc;
    147147                                else if (strcmp(optarg,"complexdomain") == 0)
    148                                         type_onset = complexdomain;
     148                                        type_onset = aubio_onset_complex;
     149                                else if (strcmp(optarg,"complex") == 0)
     150                                        type_onset = aubio_onset_complex;
    149151                                else if (strcmp(optarg,"phase") == 0)
    150                                         type_onset = phase;
     152                                        type_onset = aubio_onset_phase;
     153                                else if (strcmp(optarg,"mkl") == 0)
     154                                        type_onset = aubio_onset_mkl;
     155                                else if (strcmp(optarg,"kl") == 0)
     156                                        type_onset = aubio_onset_kl;
    151157                                else {
    152158                                        debug("could not get onset type.\n");
Note: See TracChangeset for help on using the changeset viewer.