Changeset b4f5967 for tests


Ignore:
Timestamp:
Oct 15, 2009, 5:09:34 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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

Location:
tests/src
Files:
3 edited

Legend:

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

    r27fa522 rb4f5967  
    77        fvec_t * in       = new_fvec (win_s/4, channels); /* input buffer */
    88        fvec_t * out      = new_fvec (2, channels);     /* input buffer */
    9         aubio_onset_t * onset  = new_aubio_onset(aubio_onset_complex, win_s, win_s/4, channels);
     9        aubio_onset_t * onset  = new_aubio_onset("complex", win_s, win_s/4, channels);
    1010        uint_t i = 0;
    1111
  • 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);
  • tests/src/test-tempo.c

    r27fa522 rb4f5967  
    88        fvec_t * in       = new_fvec (win_s, channels); /* input buffer */
    99        fvec_t * out      = new_fvec (2, channels);     /* input buffer */
    10         aubio_tempo_t * o  = new_aubio_tempo(aubio_onset_complex, win_s, win_s/4, channels);
     10        aubio_tempo_t * o  = new_aubio_tempo("complex", win_s, win_s/4, channels);
    1111        uint_t i = 0;
    1212
Note: See TracChangeset for help on using the changeset viewer.