- Timestamp:
- Nov 3, 2009, 6:23:04 PM (15 years ago)
- 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
- Location:
- src/onset
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/onset.c
rbafe71d r31907fd 22 22 #include "fvec.h" 23 23 #include "cvec.h" 24 #include " onset/onsetdetection.h"24 #include "spectral/specdesc.h" 25 25 #include "spectral/phasevoc.h" 26 26 #include "onset/peakpick.h" … … 31 31 struct _aubio_onset_t { 32 32 aubio_pvoc_t * pv; /**< phase vocoder */ 33 aubio_ onsetdetection_t * od; /**< onset detection */33 aubio_specdesc_t * od; /**< onset detection */ 34 34 aubio_peakpicker_t * pp; /**< peak picker */ 35 35 cvec_t * fftgrain; /**< phase vocoder output */ … … 49 49 uint_t i; 50 50 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); 52 52 /*if (usedoubled) { 53 aubio_ onsetdetection_do (o2,fftgrain, onset2);53 aubio_specdesc_do (o2,fftgrain, onset2); 54 54 onset->data[0][0] *= onset2->data[0][0]; 55 55 }*/ … … 109 109 o->pp = new_aubio_peakpicker(channels); 110 110 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); 112 112 o->fftgrain = new_cvec(buf_size,channels); 113 113 o->of = new_fvec(1, channels); 114 114 /*if (usedoubled) { 115 o2 = new_aubio_ onsetdetection(onset_type2,buffer_size,channels);115 o2 = new_aubio_specdesc(onset_type2,buffer_size,channels); 116 116 onset2 = new_fvec(1 , channels); 117 117 }*/ … … 121 121 void del_aubio_onset (aubio_onset_t *o) 122 122 { 123 del_aubio_ onsetdetection(o->od);123 del_aubio_specdesc(o->od); 124 124 del_aubio_peakpicker(o->pp); 125 125 del_aubio_pvoc(o->pv); -
src/onset/onset.h
rbafe71d r31907fd 47 47 /** create onset detection object 48 48 49 \param onset_mode onset detection type as specified in onsetdetection.h49 \param onset_mode onset detection type as specified in specdesc.h 50 50 \param buf_size buffer size for phase vocoder 51 51 \param hop_size hop size for phase vocoder
Note: See TracChangeset
for help on using the changeset viewer.