Changeset fe163ad for swig


Ignore:
Timestamp:
Oct 15, 2009, 6:54:23 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:
515c7b2
Parents:
cd77c15
Message:

src/pitch: use a string to set pitch method, add a new function to set pitch unit, keep pitch enums private, update pitch methods where they are used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/aubio.i

    rcd77c15 rfe163ad  
    199199
    200200/* pitch detection */
    201 typedef enum {
    202         aubio_pitch_yin,
    203         aubio_pitch_mcomb,
    204         aubio_pitch_schmitt,
    205         aubio_pitch_fcomb,
    206         aubio_pitch_yinfft
    207 } aubio_pitchdetection_type;
    208 
    209 typedef enum {
    210         aubio_pitchm_freq,
    211         aubio_pitchm_midi,
    212         aubio_pitchm_cent,
    213         aubio_pitchm_bin
    214 } aubio_pitchdetection_mode;
    215 
     201aubio_pitchdetection_t *new_aubio_pitchdetection (char *pitch_mode,
     202    uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate);
    216203void aubio_pitchdetection_do (aubio_pitchdetection_t * p, fvec_t * ibuf, fvec_t * obuf);
    217 
    218204void aubio_pitchdetection_set_tolerance(aubio_pitchdetection_t *p, smpl_t thres);
    219 
     205void aubio_pitchdetection_set_unit(aubio_pitchdetection_t *p, char * pitch_unit);
    220206void del_aubio_pitchdetection(aubio_pitchdetection_t * p);
    221 
    222 aubio_pitchdetection_t * new_aubio_pitchdetection(uint_t bufsize,
    223     uint_t hopsize,
    224     uint_t channels,
    225     uint_t samplerate,
    226     aubio_pitchdetection_type type,
    227     aubio_pitchdetection_mode mode);
    228207
    229208
Note: See TracChangeset for help on using the changeset viewer.