Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/aubio.i

    rc7f32b1 ra7667ce  
    8686
    8787/* filter */
    88 extern aubio_filter_t * new_aubio_filter(uint_t samplerate, uint_t order);
    89 extern aubio_filter_t * new_aubio_adsgn_filter(uint_t samplerate);
    90 extern aubio_filter_t * new_aubio_cdsgn_filter(uint_t samplerate);
     88extern aubio_filter_t * new_aubio_filter(uint_t samplerate, uint_t order, uint_t channels);
    9189extern void aubio_filter_do(aubio_filter_t * b, fvec_t * in);
    9290extern void aubio_filter_do_outplace(aubio_filter_t * b, fvec_t * in, fvec_t * out);
    9391extern void aubio_filter_do_filtfilt(aubio_filter_t * b, fvec_t * in, fvec_t * tmp);
    94 /*extern int del_aubio_filter(aubio_filter_t * b);*/
     92extern void del_aubio_filter(aubio_filter_t * b);
     93
     94extern aubio_filter_t * new_aubio_adsgn_filter(uint_t samplerate, uint_t channels);
     95extern void aubio_adsgn_filter_do(aubio_filter_t * b, fvec_t * in);
     96extern void del_aubio_adsgn_filter(aubio_filter_t * b);
     97
     98extern aubio_filter_t * new_aubio_cdsgn_filter(uint_t samplerate, uint_t channels);
     99extern void aubio_cdsgn_filter_do(aubio_filter_t * b, fvec_t * in);
     100extern void del_aubio_cdsgn_filter(aubio_filter_t * b);
    95101
    96102/* biquad */
     
    155161smpl_t aubio_spectral_centroid(cvec_t * spectrum, smpl_t samplerate);
    156162
     163/* filterbank */
     164aubio_filterbank_t * new_aubio_filterbank(uint_t win_s, uint_t channels);
     165aubio_filterbank_t * new_aubio_filterbank_mfcc(uint_t n_filters, uint_t win_s, uint_t samplerate, smpl_t freq_min, smpl_t freq_max);
     166void del_aubio_filterbank(aubio_filterbank_t * fb);
     167void aubio_filterbank_do(aubio_filterbank_t * fb, cvec_t * in, fvec_t *out);
     168fvec_t * aubio_filterbank_getchannel(aubio_filterbank_t * fb, uint_t channel);
     169
     170/* mfcc */
     171aubio_mfcc_t * new_aubio_mfcc (uint_t win_s, uint_t samplerate, uint_t n_filters, uint_t n_coefs, smpl_t lowfreq, smpl_t highfreq, uint_t channels);
     172void del_aubio_mfcc(aubio_mfcc_t *mf);
     173void aubio_mfcc_do(aubio_mfcc_t *mf, cvec_t *in, fvec_t *out);
     174
    157175/* scale */
    158 extern aubio_scale_t * new_aubio_scale(smpl_t flow, smpl_t fhig, smpl_t ilow, smpl_t ihig       );
     176extern aubio_scale_t * new_aubio_scale(smpl_t flow, smpl_t fhig, smpl_t ilow, smpl_t ihig);
    159177extern void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig);
    160178extern void aubio_scale_do(aubio_scale_t *s, fvec_t * input);
     
    202220        aubio_pitch_schmitt,
    203221        aubio_pitch_fcomb,
    204         aubio_pitch_yinfft
     222        aubio_pitch_yinfft
    205223} aubio_pitchdetection_type;
    206224
     
    219237
    220238aubio_pitchdetection_t * new_aubio_pitchdetection(uint_t bufsize,
    221                 uint_t hopsize,
    222                 uint_t channels,
    223                 uint_t samplerate,
    224                 aubio_pitchdetection_type type,
    225                 aubio_pitchdetection_mode mode);
     239    uint_t hopsize,
     240    uint_t channels,
     241    uint_t samplerate,
     242    aubio_pitchdetection_type type,
     243    aubio_pitchdetection_mode mode);
    226244
    227245
     
    251269aubio_pickpeak_t * new_aubio_peakpicker(smpl_t threshold);
    252270uint_t aubio_peakpick_pimrt(fvec_t * DF, aubio_pickpeak_t * p);
     271uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, aubio_pickpeak_t* p, smpl_t* peakval );
    253272smpl_t aubio_peakpick_pimrt_getval(aubio_pickpeak_t* p);
    254 uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, aubio_pickpeak_t* p, smpl_t* peakval );
    255273void del_aubio_peakpicker(aubio_pickpeak_t * p);
     274void aubio_peakpicker_set_threshold(aubio_pickpeak_t * p, smpl_t threshold);
     275smpl_t aubio_peakpicker_get_threshold(aubio_pickpeak_t * p);
    256276
    257277/* transient/steady state separation */
     
    463483sint_t aubio_midi_player_join(aubio_midi_player_t* player);
    464484sint_t aubio_track_send_events(aubio_track_t* track,
    465 /*  aubio_synth_t* synth, */
    466                            aubio_midi_player_t* player,
    467                            uint_t ticks);
     485    /*  aubio_synth_t* synth, */
     486    aubio_midi_player_t* player,
     487    uint_t ticks);
    468488sint_t aubio_midi_send_event(aubio_midi_player_t* player, aubio_midi_event_t* event);
    469489
Note: See TracChangeset for help on using the changeset viewer.