Changeset eb089fb


Ignore:
Timestamp:
Oct 6, 2009, 5:03: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:
b07ff1e
Parents:
422edfb
Message:

swig/aubio.i: update peakpicker interface, escape #if as needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/aubio.i

    r422edfb reb089fb  
    6262
    6363/* sndfile */
    64 #if HAVE_SNDFILE
     64%#if HAVE_SNDFILE
    6565extern aubio_sndfile_t * new_aubio_sndfile_ro (const char * inputfile);
    6666extern aubio_sndfile_t * new_aubio_sndfile_wo(aubio_sndfile_t * existingfile, const char * outputname);
     
    7171extern uint_t aubio_sndfile_channels(aubio_sndfile_t * file);
    7272extern uint_t aubio_sndfile_samplerate(aubio_sndfile_t * file);
    73 #endif /* HAVE_SNDFILE */
     73%#endif /* HAVE_SNDFILE */
    7474
    7575/* fft */
     
    181181
    182182/* resampling */
    183 #if HAVE_LIBSAMPLERATE
     183%#if HAVE_SAMPLERATE
    184184extern aubio_resampler_t * new_aubio_resampler(float ratio, uint_t type);
    185185extern uint_t aubio_resampler_process(aubio_resampler_t *s, fvec_t * input,  fvec_t * output);
    186186extern void del_aubio_resampler(aubio_resampler_t *s);
    187 #endif /* HAVE_LIBSAMPLERATE */
     187%#endif /* HAVE_SAMPLERATE */
    188188
    189189/* onset detection */
     
    271271/* peakpicker */
    272272aubio_pickpeak_t * new_aubio_peakpicker(smpl_t threshold);
    273 smpl_t aubio_peakpick_pimrt(fvec_t * DF, aubio_pickpeak_t * p);
    274 uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, aubio_pickpeak_t* p, smpl_t* peakval );
    275 smpl_t aubio_peakpick_pimrt_getval(aubio_pickpeak_t* p);
     273smpl_t aubio_peakpicker_do(aubio_pickpeak_t * p, fvec_t * df);
     274smpl_t aubio_peakpicker_get_thresholded_input(aubio_pickpeak_t* p);
    276275void del_aubio_peakpicker(aubio_pickpeak_t * p);
    277276void aubio_peakpicker_set_threshold(aubio_pickpeak_t * p, smpl_t threshold);
Note: See TracChangeset for help on using the changeset viewer.