Ignore:
Timestamp:
Oct 15, 2009, 5:09:34 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:
cd77c15
Parents:
27fa522
Message:

src/onset: use a string to set onset mode, keeping onset types enum private, update everywhere onsets are used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/test-onsetdetection.c

    r27fa522 rb4f5967  
    1212  aubio_onsetdetection_t *o;
    1313 
    14   o = new_aubio_onsetdetection (aubio_onset_energy, win_s, channels);
     14  o = new_aubio_onsetdetection ("energy", win_s, channels);
    1515  aubio_onsetdetection_do (o, in, out);
    1616  del_aubio_onsetdetection (o);
    1717
    18   o = new_aubio_onsetdetection (aubio_onset_specdiff, win_s, channels);
     18  o = new_aubio_onsetdetection ("energy", win_s, channels);
    1919  aubio_onsetdetection_do (o, in, out);
    2020  del_aubio_onsetdetection (o);
    2121
    22   o = new_aubio_onsetdetection (aubio_onset_hfc, win_s, channels);
     22  o = new_aubio_onsetdetection ("hfc", win_s, channels);
    2323  aubio_onsetdetection_do (o, in, out);
    2424  del_aubio_onsetdetection (o);
    2525
    26   o = new_aubio_onsetdetection (aubio_onset_complex, win_s, channels);
     26  o = new_aubio_onsetdetection ("complex", win_s, channels);
    2727  aubio_onsetdetection_do (o, in, out);
    2828  del_aubio_onsetdetection (o);
    2929
    30   o = new_aubio_onsetdetection (aubio_onset_phase, win_s, channels);
     30  o = new_aubio_onsetdetection ("phase", win_s, channels);
    3131  aubio_onsetdetection_do (o, in, out);
    3232  del_aubio_onsetdetection (o);
    3333
    34   o = new_aubio_onsetdetection (aubio_onset_kl, win_s, channels);
     34  o = new_aubio_onsetdetection ("kl", win_s, channels);
    3535  aubio_onsetdetection_do (o, in, out);
    3636  del_aubio_onsetdetection (o);
    3737
    38   o = new_aubio_onsetdetection (aubio_onset_mkl, win_s, channels);
     38  o = new_aubio_onsetdetection ("mkl", win_s, channels);
    3939  aubio_onsetdetection_do (o, in, out);
    4040  del_aubio_onsetdetection (o);
Note: See TracChangeset for help on using the changeset viewer.