- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tempo/tempo.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 "tempo/beattracking.h" 26 26 #include "spectral/phasevoc.h" … … 31 31 /* structure to store object state */ 32 32 struct _aubio_tempo_t { 33 aubio_ onsetdetection_t * od; /** onset detection */33 aubio_specdesc_t * od; /** onset detection */ 34 34 aubio_pvoc_t * pv; /** phase vocoder */ 35 35 aubio_peakpicker_t * pp; /** peak picker */ … … 56 56 uint_t step = o->step; 57 57 aubio_pvoc_do (o->pv, input, o->fftgrain); 58 aubio_ onsetdetection_do (o->od, o->fftgrain, o->of);58 aubio_specdesc_do (o->od, o->fftgrain, o->of); 59 59 /*if (usedoubled) { 60 aubio_ onsetdetection_do(o2,fftgrain, onset2);60 aubio_specdesc_do(o2,fftgrain, onset2); 61 61 onset->data[0][0] *= onset2->data[0][0]; 62 62 }*/ … … 121 121 o->pp = new_aubio_peakpicker(channels); 122 122 aubio_peakpicker_set_threshold (o->pp, o->threshold); 123 o->od = new_aubio_ onsetdetection(onset_mode,buf_size,channels);123 o->od = new_aubio_specdesc(onset_mode,buf_size,channels); 124 124 o->of = new_fvec(1, channels); 125 125 o->bt = new_aubio_beattracking(o->winlen,channels); … … 127 127 o->peek = new_fvec(3, channels); 128 128 /*if (usedoubled) { 129 o2 = new_aubio_ onsetdetection(type_onset2,buffer_size,channels);129 o2 = new_aubio_specdesc(type_onset2,buffer_size,channels); 130 130 onset2 = new_fvec(1 , channels); 131 131 }*/ … … 143 143 void del_aubio_tempo (aubio_tempo_t *o) 144 144 { 145 del_aubio_ onsetdetection(o->od);145 del_aubio_specdesc(o->od); 146 146 del_aubio_beattracking(o->bt); 147 147 del_aubio_peakpicker(o->pp);
Note: See TracChangeset
for help on using the changeset viewer.