Changeset 01b8fcc
- Timestamp:
- Oct 7, 2009, 10:58:25 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:
- 0ce97483
- Parents:
- cb158ab
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
rcb158ab r01b8fcc 39 39 /* block loop */ 40 40 aubio_pvoc_do (pv,ibuf, fftgrain); 41 aubio_onsetdetection (o,fftgrain, onset);41 aubio_onsetdetection_do(o,fftgrain, onset); 42 42 if (usedoubled) { 43 aubio_onsetdetection (o2,fftgrain, onset2);43 aubio_onsetdetection_do(o2,fftgrain, onset2); 44 44 onset->data[0][0] *= onset2->data[0][0]; 45 45 } -
examples/aubioonset.c
rcb158ab r01b8fcc 39 39 /* block loop */ 40 40 aubio_pvoc_do (pv,ibuf, fftgrain); 41 aubio_onsetdetection (o,fftgrain, onset);41 aubio_onsetdetection_do (o,fftgrain, onset); 42 42 if (usedoubled) { 43 aubio_onsetdetection (o2,fftgrain, onset2);43 aubio_onsetdetection_do (o2,fftgrain, onset2); 44 44 onset->data[0][0] *= onset2->data[0][0]; 45 45 } -
plugins/puredata/aubioonset~.c
rcb158ab r01b8fcc 47 47 /* block loop */ 48 48 aubio_pvoc_do (x->pv,x->vec, x->fftgrain); 49 aubio_onsetdetection (x->o,x->fftgrain, x->onset);49 aubio_onsetdetection_do (x->o,x->fftgrain, x->onset); 50 50 isonset = aubio_peakpick_pimrt(x->onset,x->parms); 51 51 if (isonset) { -
python/aubio/aubioclass.py
rcb158ab r01b8fcc 73 73 self.od = new_aubio_onsetdetection(type,buf,chan) 74 74 def do(self,tc,tf): 75 aubio_onsetdetection (self.od,tc(),tf())75 aubio_onsetdetection_do(self.od,tc(),tf()) 76 76 def __del__(self): 77 77 del_aubio_onsetdetection(self.od) -
src/onset/onset.c
rcb158ab r01b8fcc 46 46 uint_t wasonset = o->wasonset; 47 47 aubio_pvoc_do (o->pv,input, o->fftgrain); 48 aubio_onsetdetection (o->od,o->fftgrain, o->of);48 aubio_onsetdetection_do (o->od,o->fftgrain, o->of); 49 49 /*if (usedoubled) { 50 aubio_onsetdetection (o2,fftgrain, onset2);50 aubio_onsetdetection_do (o2,fftgrain, onset2); 51 51 onset->data[0][0] *= onset2->data[0][0]; 52 52 }*/ -
src/onset/onsetdetection.c
rcb158ab r01b8fcc 296 296 /* Generic function pointing to the choosen one */ 297 297 void 298 aubio_onsetdetection (aubio_onsetdetection_t *o, cvec_t * fftgrain,298 aubio_onsetdetection_do (aubio_onsetdetection_t *o, cvec_t * fftgrain, 299 299 fvec_t * onset) { 300 300 o->funcpointer(o,fftgrain,onset); -
src/onset/onsetdetection.h
rcb158ab r01b8fcc 62 62 63 63 */ 64 void aubio_onsetdetection (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);64 void aubio_onsetdetection_do (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 65 65 /** creation of an onset detection object 66 66 -
src/tempo/tempo.c
rcb158ab r01b8fcc 52 52 uint_t step = o->step; 53 53 aubio_pvoc_do (o->pv, input, o->fftgrain); 54 aubio_onsetdetection (o->od, o->fftgrain, o->of);54 aubio_onsetdetection_do (o->od, o->fftgrain, o->of); 55 55 /*if (usedoubled) { 56 aubio_onsetdetection (o2,fftgrain, onset2);56 aubio_onsetdetection_do(o2,fftgrain, onset2); 57 57 onset->data[0][0] *= onset2->data[0][0]; 58 58 }*/ -
swig/aubio.i
rcb158ab r01b8fcc 199 199 } aubio_onsetdetection_type; 200 200 aubio_onsetdetection_t * new_aubio_onsetdetection(aubio_onsetdetection_type type, uint_t size, uint_t channels); 201 void aubio_onsetdetection (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);201 void aubio_onsetdetection_do (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 202 202 void del_aubio_onsetdetection(aubio_onsetdetection_t *o); 203 204 /* should these still be exposed ? */205 void aubio_onsetdetection_energy (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);206 void aubio_onsetdetection_hfc (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);207 void aubio_onsetdetection_complex (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);208 void aubio_onsetdetection_phase (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);209 void aubio_onsetdetection_specdiff(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);210 void aubio_onsetdetection_kl (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);211 void aubio_onsetdetection_mkl (aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);212 203 213 204 /* pvoc */ -
tests/src/test-onsetdetection.c
rcb158ab r01b8fcc 2 2 #include <aubio.h> 3 3 4 int main(){ 5 /* allocate some memory */ 6 uint_t win_s = 1024; /* window size */ 7 uint_t channels = 1; /* number of channel */ 8 cvec_t * in = new_cvec (win_s, channels); /* input buffer */ 9 fvec_t * out = new_fvec (1, channels); /* input buffer */ 4 int 5 main () 6 { 7 uint_t win_s = 1024; /* window size */ 8 uint_t channels = 1; /* number of channel */ 9 cvec_t *in = new_cvec (win_s, channels); /* input buffer */ 10 fvec_t *out = new_fvec (1, channels); /* input buffer */ 11 12 aubio_onsetdetection_t *o; 10 13 11 /* allocate fft and other memory space */ 12 aubio_onsetdetection_t * o = 13 new_aubio_onsetdetection(aubio_onset_energy, win_s, channels); 14 aubio_onsetdetection(o,in,out); 15 aubio_onsetdetection_energy(o,in,out); 16 del_aubio_onsetdetection(o); 14 o = new_aubio_onsetdetection (aubio_onset_energy, win_s, channels); 15 aubio_onsetdetection_do (o, in, out); 16 del_aubio_onsetdetection (o); 17 17 18 o = new_aubio_onsetdetection(aubio_onset_specdiff, win_s, channels); 19 aubio_onsetdetection(o,in,out); 20 aubio_onsetdetection_specdiff(o,in,out); 21 del_aubio_onsetdetection(o); 18 o = new_aubio_onsetdetection (aubio_onset_specdiff, win_s, channels); 19 aubio_onsetdetection_do (o, in, out); 20 del_aubio_onsetdetection (o); 22 21 23 o = new_aubio_onsetdetection(aubio_onset_hfc, win_s, channels); 24 aubio_onsetdetection(o,in,out); 25 aubio_onsetdetection_hfc(o,in,out); 26 del_aubio_onsetdetection(o); 22 o = new_aubio_onsetdetection (aubio_onset_hfc, win_s, channels); 23 aubio_onsetdetection_do (o, in, out); 24 del_aubio_onsetdetection (o); 27 25 28 o = new_aubio_onsetdetection(aubio_onset_complex, win_s, channels); 29 aubio_onsetdetection(o,in,out); 30 aubio_onsetdetection_complex(o,in,out); 31 del_aubio_onsetdetection(o); 26 o = new_aubio_onsetdetection (aubio_onset_complex, win_s, channels); 27 aubio_onsetdetection_do (o, in, out); 28 del_aubio_onsetdetection (o); 32 29 33 o = new_aubio_onsetdetection(aubio_onset_phase, win_s, channels); 34 aubio_onsetdetection(o,in,out); 35 aubio_onsetdetection_phase(o,in,out); 36 del_aubio_onsetdetection(o); 30 o = new_aubio_onsetdetection (aubio_onset_phase, win_s, channels); 31 aubio_onsetdetection_do (o, in, out); 32 del_aubio_onsetdetection (o); 37 33 38 o = new_aubio_onsetdetection(aubio_onset_kl, win_s, channels); 39 aubio_onsetdetection(o,in,out); 40 aubio_onsetdetection_kl(o,in,out); 41 del_aubio_onsetdetection(o); 34 o = new_aubio_onsetdetection (aubio_onset_kl, win_s, channels); 35 aubio_onsetdetection_do (o, in, out); 36 del_aubio_onsetdetection (o); 42 37 43 o = new_aubio_onsetdetection(aubio_onset_mkl, win_s, channels); 44 aubio_onsetdetection(o,in,out); 45 aubio_onsetdetection_mkl(o,in,out); 46 del_aubio_onsetdetection(o); 38 o = new_aubio_onsetdetection (aubio_onset_mkl, win_s, channels); 39 aubio_onsetdetection_do (o, in, out); 40 del_aubio_onsetdetection (o); 47 41 48 del_cvec(in);49 del_fvec(out);50 aubio_cleanup();42 del_cvec (in); 43 del_fvec (out); 44 aubio_cleanup (); 51 45 52 46 return 0; 53 47 } 54
Note: See TracChangeset
for help on using the changeset viewer.