Changeset 31907fd for src/onset


Ignore:
Timestamp:
Nov 3, 2009, 6:23:04 PM (14 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:
bf2e7a7
Parents:
bafe71d
Message:

src/spectral/specdesc.{c,h}: rename aubio_onsetdetection to aubio_specdesc

Location:
src/onset
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    rbafe71d r31907fd  
    2222#include "fvec.h"
    2323#include "cvec.h"
    24 #include "onset/onsetdetection.h"
     24#include "spectral/specdesc.h"
    2525#include "spectral/phasevoc.h"
    2626#include "onset/peakpick.h"
     
    3131struct _aubio_onset_t {
    3232  aubio_pvoc_t * pv;            /**< phase vocoder */
    33   aubio_onsetdetection_t * od;  /**< onset detection */
     33  aubio_specdesc_t * od;  /**< onset detection */
    3434  aubio_peakpicker_t * pp;      /**< peak picker */
    3535  cvec_t * fftgrain;            /**< phase vocoder output */
     
    4949  uint_t i;
    5050  aubio_pvoc_do (o->pv,input, o->fftgrain);
    51   aubio_onsetdetection_do (o->od,o->fftgrain, o->of);
     51  aubio_specdesc_do (o->od,o->fftgrain, o->of);
    5252  /*if (usedoubled) {
    53     aubio_onsetdetection_do (o2,fftgrain, onset2);
     53    aubio_specdesc_do (o2,fftgrain, onset2);
    5454    onset->data[0][0] *= onset2->data[0][0];
    5555  }*/
     
    109109  o->pp = new_aubio_peakpicker(channels);
    110110  aubio_peakpicker_set_threshold (o->pp, o->threshold);
    111   o->od = new_aubio_onsetdetection(onset_mode,buf_size,channels);
     111  o->od = new_aubio_specdesc(onset_mode,buf_size,channels);
    112112  o->fftgrain = new_cvec(buf_size,channels);
    113113  o->of = new_fvec(1, channels);
    114114  /*if (usedoubled)    {
    115     o2 = new_aubio_onsetdetection(onset_type2,buffer_size,channels);
     115    o2 = new_aubio_specdesc(onset_type2,buffer_size,channels);
    116116    onset2 = new_fvec(1 , channels);
    117117  }*/
     
    121121void del_aubio_onset (aubio_onset_t *o)
    122122{
    123   del_aubio_onsetdetection(o->od);
     123  del_aubio_specdesc(o->od);
    124124  del_aubio_peakpicker(o->pp);
    125125  del_aubio_pvoc(o->pv);
  • src/onset/onset.h

    rbafe71d r31907fd  
    4747/** create onset detection object
    4848 
    49   \param onset_mode onset detection type as specified in onsetdetection.h
     49  \param onset_mode onset detection type as specified in specdesc.h
    5050  \param buf_size buffer size for phase vocoder
    5151  \param hop_size hop size for phase vocoder
Note: See TracChangeset for help on using the changeset viewer.