Changeset b4f5967 for swig


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
  • swig/aubio.i

    r27fa522 rb4f5967  
    188188
    189189/* onset detection */
    190 typedef enum {
    191         aubio_onset_energy,
    192         aubio_onset_specdiff,
    193         aubio_onset_hfc,
    194         aubio_onset_complex,
    195         aubio_onset_phase,
    196         aubio_onset_kl,
    197         aubio_onset_mkl,
    198         aubio_onset_specflux,
    199 } aubio_onsetdetection_type;
    200 aubio_onsetdetection_t * new_aubio_onsetdetection(aubio_onsetdetection_type type, uint_t size, uint_t channels);
     190aubio_onsetdetection_t * new_aubio_onsetdetection(char * onset_mode, uint_t size, uint_t channels);
    201191void aubio_onsetdetection_do (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);
    202192void del_aubio_onsetdetection(aubio_onsetdetection_t *o);
Note: See TracChangeset for help on using the changeset viewer.