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
  • src/onset/onsetdetection.h

    r27fa522 rb4f5967  
    3939#endif
    4040
    41 /** onsetdetection types */
    42 typedef enum {
    43         aubio_onset_energy,         /**< energy based */         
    44         aubio_onset_specdiff,       /**< spectral diff */         
    45         aubio_onset_hfc,            /**< high frequency content */
    46         aubio_onset_complex,        /**< complex domain */       
    47         aubio_onset_phase,          /**< phase fast */           
    48         aubio_onset_kl,             /**< Kullback Liebler */
    49         aubio_onset_mkl,            /**< modified Kullback Liebler */
    50         aubio_onset_specflux,       /**< spectral flux */
    51 } aubio_onsetdetection_type;
    52 
    5341/** onsetdetection structure */
    5442typedef struct _aubio_onsetdetection_t aubio_onsetdetection_t;
     
    7058
    7159*/
    72 aubio_onsetdetection_t * new_aubio_onsetdetection(aubio_onsetdetection_type type, uint_t size, uint_t channels);
     60aubio_onsetdetection_t * new_aubio_onsetdetection(char_t * onset_mode, uint_t buf_size, uint_t channels);
    7361/** deletion of an onset detection object
    7462
Note: See TracChangeset for help on using the changeset viewer.