Changeset 7dec719


Ignore:
Timestamp:
Dec 4, 2009, 1:45:40 AM (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:
c17a0ee
Parents:
02a01dd
Message:

swig/aubio.i: switch to mono

File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/aubio.i

    r02a01dd r7dec719  
    1212
    1313/* fvec */
    14 fvec_t * new_fvec(uint_t length, uint_t channels);
     14fvec_t * new_fvec(uint_t length);
    1515void del_fvec(fvec_t *s);
    16 smpl_t fvec_read_sample(fvec_t *s, uint_t channel, uint_t position);
    17 void fvec_write_sample(fvec_t *s, smpl_t data, uint_t channel, uint_t position);
    18 smpl_t * fvec_get_channel(fvec_t *s, uint_t channel);
    19 void fvec_put_channel(fvec_t *s, smpl_t * data, uint_t channel);
    20 smpl_t ** fvec_get_data(fvec_t *s);
     16smpl_t fvec_read_sample(fvec_t *s, uint_t position);
     17void fvec_write_sample(fvec_t *s, smpl_t data, uint_t position);
     18smpl_t * fvec_get_data(fvec_t *s);
    2119
    2220/* cvec */
    23 cvec_t * new_cvec(uint_t length, uint_t channels);
     21cvec_t * new_cvec(uint_t length);
    2422void del_cvec(cvec_t *s);
    25 void cvec_write_norm(cvec_t *s, smpl_t data, uint_t channel, uint_t position);
    26 void cvec_write_phas(cvec_t *s, smpl_t data, uint_t channel, uint_t position);
    27 smpl_t cvec_read_norm(cvec_t *s, uint_t channel, uint_t position);
    28 smpl_t cvec_read_phas(cvec_t *s, uint_t channel, uint_t position);
    29 void cvec_put_norm_channel(cvec_t *s, smpl_t * data, uint_t channel);
    30 void cvec_put_phas_channel(cvec_t *s, smpl_t * data, uint_t channel);
    31 smpl_t * cvec_get_norm_channel(cvec_t *s, uint_t channel);
    32 smpl_t * cvec_get_phas_channel(cvec_t *s, uint_t channel);
    33 smpl_t ** cvec_get_norm(cvec_t *s);
    34 smpl_t ** cvec_get_phas(cvec_t *s);
     23void cvec_write_norm(cvec_t *s, smpl_t data, uint_t position);
     24void cvec_write_phas(cvec_t *s, smpl_t data, uint_t position);
     25smpl_t cvec_read_norm(cvec_t *s, uint_t position);
     26smpl_t cvec_read_phas(cvec_t *s, uint_t position);
     27smpl_t * cvec_get_norm(cvec_t *s);
     28smpl_t * cvec_get_phas(cvec_t *s);
    3529
    3630
    3731/* fft */
    38 aubio_fft_t * new_aubio_fft(uint_t size, uint_t channels);
     32aubio_fft_t * new_aubio_fft(uint_t size);
    3933void del_aubio_fft(aubio_fft_t * s);
    4034void aubio_fft_do (aubio_fft_t *s, fvec_t * input, cvec_t * spectrum);
     
    5044
    5145/* filter */
    52 aubio_filter_t * new_aubio_filter(uint_t order, uint_t channels);
     46aubio_filter_t * new_aubio_filter(uint_t order);
    5347void aubio_filter_do(aubio_filter_t * b, fvec_t * in);
    5448void aubio_filter_do_outplace(aubio_filter_t * b, fvec_t * in, fvec_t * out);
     
    5751
    5852/* a_weighting */
    59 aubio_filter_t * new_aubio_filter_a_weighting (uint_t channels, uint_t samplerate);
     53aubio_filter_t * new_aubio_filter_a_weighting (uint_t samplerate);
    6054uint_t aubio_filter_set_a_weighting (aubio_filter_t * b, uint_t samplerate);
    6155
    6256/* c_weighting */
    63 aubio_filter_t * new_aubio_filter_c_weighting (uint_t channels, uint_t samplerate);
     57aubio_filter_t * new_aubio_filter_c_weighting (uint_t samplerate);
    6458uint_t aubio_filter_set_c_weighting (aubio_filter_t * b, uint_t samplerate);
    6559
    6660/* biquad */
    67 aubio_filter_t * new_aubio_filter_biquad(lsmp_t b1, lsmp_t b2, lsmp_t b3, lsmp_t a2, lsmp_t a3, uint_t channels);
     61aubio_filter_t * new_aubio_filter_biquad(lsmp_t b1, lsmp_t b2, lsmp_t b3, lsmp_t a2, lsmp_t a3);
    6862uint_t aubio_filter_set_biquad (aubio_filter_t * b, lsmp_t b1, lsmp_t b2, lsmp_t b3, lsmp_t a2, lsmp_t a3);
    6963
     
    9488
    9589/* pvoc */
    96 aubio_pvoc_t * new_aubio_pvoc (uint_t win_s, uint_t hop_s, uint_t channels);
     90aubio_pvoc_t * new_aubio_pvoc (uint_t win_s, uint_t hop_s);
    9791void del_aubio_pvoc(aubio_pvoc_t *pv);
    9892void aubio_pvoc_do(aubio_pvoc_t *pv, fvec_t *in, cvec_t * fftgrain);
     
    10195/* pitch detection */
    10296aubio_pitch_t *new_aubio_pitch (char *pitch_mode,
    103     uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate);
     97    uint_t bufsize, uint_t hopsize, uint_t samplerate);
    10498void aubio_pitch_do (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf);
    10599uint_t aubio_pitch_set_tolerance(aubio_pitch_t *p, smpl_t thres);
     
    109103/* tempo */
    110104aubio_tempo_t * new_aubio_tempo (char_t * mode,
    111     uint_t buf_size, uint_t hop_size, uint_t channels, uint_t samplerate);
     105    uint_t buf_size, uint_t hop_size, uint_t samplerate);
    112106void aubio_tempo_do (aubio_tempo_t *o, fvec_t * input, fvec_t * tempo);
    113107uint_t aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence);
     
    120114void aubio_specdesc_do (aubio_specdesc_t * o, cvec_t * fftgrain,
    121115  fvec_t * desc);
    122 aubio_specdesc_t *new_aubio_specdesc (char_t * method, uint_t buf_size,
    123   uint_t channels);
     116aubio_specdesc_t *new_aubio_specdesc (char_t * method, uint_t buf_size);
    124117void del_aubio_specdesc (aubio_specdesc_t * o);
    125118
    126119/* peak picker */
    127 aubio_peakpicker_t * new_aubio_peakpicker(uint_t channels);
     120aubio_peakpicker_t * new_aubio_peakpicker();
    128121void aubio_peakpicker_do(aubio_peakpicker_t * p, fvec_t * in, fvec_t * out);
    129122fvec_t * aubio_peakpicker_get_thresholded_input(aubio_peakpicker_t * p);
     
    140133aubio_sndfile_t * new_aubio_sndfile_wo(aubio_sndfile_t * existingfile, const char * outputname);
    141134void aubio_sndfile_info(aubio_sndfile_t * file);
    142 int aubio_sndfile_write(aubio_sndfile_t * file, int frames, fvec_t * write);
    143 int aubio_sndfile_read(aubio_sndfile_t * file, int frames, fvec_t * read);
     135int aubio_sndfile_write(aubio_sndfile_t * file, int frames, fvec_t ** write);
     136int aubio_sndfile_read(aubio_sndfile_t * file, int frames, fvec_t ** read);
    144137int del_aubio_sndfile(aubio_sndfile_t * file);
    145138uint_t aubio_sndfile_channels(aubio_sndfile_t * file);
Note: See TracChangeset for help on using the changeset viewer.